8MMINILPD4-EVK OTG USB Mass Storage media boot

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

8MMINILPD4-EVK OTG USB Mass Storage media boot

ソリューションへジャンプ
3,386件の閲覧回数
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,315件の閲覧回数
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,371件の閲覧回数
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,341件の閲覧回数
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,327件の閲覧回数
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,316件の閲覧回数
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,310件の閲覧回数
vignesh-baskaran
Contributor III

Thanks, it worked.

0 件の賞賛
返信