8MMINILPD4-EVK OTG USB Mass Storage media boot

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

8MMINILPD4-EVK OTG USB Mass Storage media boot

跳至解决方案
3,382 次查看
vignesh-baskaran
Contributor III

HI,

We were trying to boot from OTG USB boot. We were searched for the same but unable to find any useful resources. if possible can you point us out how to achieve that?

 

We  were trying to build yocto image for OTG. How to do that?

is it possible to boot from OTG directly or we need to boot from other device and load kernel and filesystem.?

 

 

0 项奖励
回复
1 解答
3,311 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @vignesh-baskaran 

This error is because of the unavailability of rootfs in the ext4 partition.
Put the rootfs in ext4 and change the bootargs.
 
=> setenv bootargs 'console=ttymxc0,115200 root=/dev/sda2 rootfstype=ext4 rootwait rw consoleblank=0 ip=off'
Run the above steps from the previous thread.
=> booti $loadaddr - $fdt_addr
 
Thanks & Regards
Sanket Parekh

在原帖中查看解决方案

0 项奖励
回复
5 回复数
3,367 次查看
vignesh-baskaran
Contributor III

vigneshbaskaran_1-1671452211500.png

So i followed steps mentioned for SD card and create partition for OTG USB device.

I changed boot sw to boot from qspi and trying to boot from USB.

But getting error can you help me out?

0 项奖励
回复
3,337 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport
 
I hope you are doing well,
Please accept my apologies for delayed answer.
 
Please find the answer below.

We tried to flash the image in our imx8mq board by following the steps below.
  Connected the USB device (with Image) to the board
=> usb start
=> usb info [to confirm that the USB device has been attached successfully]
=> fatls usb <n> [to check images in USB device]
=> fatload usb 0:1 {loadaddr} <kernel_image>
=> fatload usb 0:1 {fdt_addr} <dtb>
=> booti {loadaddr} - {fdt_addr}
and we were able to boot the board and get the kernel logs.
The value of {loadaddr} and {fdt_addr} can be found in Table 63. Board-specific default value of i.MX Linux User's Guide
 
Thanks & Regards
Sanket Parekh
0 项奖励
回复
3,323 次查看
vignesh-baskaran
Contributor III

Hi @Sanket_Parekh,

We tried same as follows,

but we getting kernel panic while booting.

Please refer below image.

 

We created image using SD image for USB booting. is it correct way or we should try different approach for that?

Thanks,

0 项奖励
回复
3,312 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @vignesh-baskaran 

This error is because of the unavailability of rootfs in the ext4 partition.
Put the rootfs in ext4 and change the bootargs.
 
=> setenv bootargs 'console=ttymxc0,115200 root=/dev/sda2 rootfstype=ext4 rootwait rw consoleblank=0 ip=off'
Run the above steps from the previous thread.
=> booti $loadaddr - $fdt_addr
 
Thanks & Regards
Sanket Parekh
0 项奖励
回复
3,306 次查看
vignesh-baskaran
Contributor III

Thanks, it worked.

0 项奖励
回复