8MMINILPD4-EVK OTG USB Mass Storage media boot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

8MMINILPD4-EVK OTG USB Mass Storage media boot

Jump to solution
1,265 Views
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 Kudos
Reply
1 Solution
1,194 Views
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

View solution in original post

0 Kudos
Reply
5 Replies
1,250 Views
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 Kudos
Reply
1,220 Views
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 Kudos
Reply
1,207 Views
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 Kudos
Reply
1,195 Views
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 Kudos
Reply
1,190 Views
vignesh-baskaran
Contributor III

Thanks, it worked.

0 Kudos
Reply