Is there a simple way to update the DTB and kernel image on an eMMC?

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

Is there a simple way to update the DTB and kernel image on an eMMC?

Jump to solution
654 Views
Keta_S_Nitsure
Contributor II

During development, we need to frequently update the DTB and kernel image.
Using an SD card is very convenient; a card reader can read and write the DTB and kernel image on a FAT partition.
However, using an eMMC is very inconvenient. Is there a simpler method?

0 Kudos
Reply
1 Solution
233 Views
meketok
Contributor II
0 Kudos
Reply
7 Replies
630 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

You can update the DTB file configuring your board in fastboot from U-boot and transfer the file with UUU.

Regarding flash the image I suggest you re-flash with UUU or try to flash the eMMC from SD card but I think this process is more complicated. 

Best regards.

0 Kudos
Reply
617 Views
Keta_S_Nitsure
Contributor II

How to do this specifically?

Is there any guidance document?

 

Thanks.

0 Kudos
Reply
576 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

What are you referring for?

Upload DTB with fastboot or flash eMMC from SD card or both?

Best regards.

0 Kudos
Reply
558 Views
Keta_S_Nitsure
Contributor II

Use fastboot, as you mentioned before.

Thanks.

0 Kudos
Reply
524 Views
JorgeCas
NXP TechSupport
NXP TechSupport

Hello,

To enter on fastboot mode you need:

1. Turn on the board and stop boot flow pressing any key to enter in U-boot.

2. In U-boot enter next command:

fastboot 0

Use the next command to send the file with UUU:

uuu -v -b fat_write <file> mmc 0:1 <file>

Example:

uuu -v -b fat_write hello_world.elf mmc 0:1 hello_world.elf

Best regards.

0 Kudos
Reply
234 Views
meketok
Contributor II

Here is the better way, I believe.

 

How to upgrade Linux Kernel and dtb on eMMC without UUU 

0 Kudos
Reply
156 Views
Keta_S_Nitsure
Contributor II

@meketok 

Wow! That's awesome.

This doesn't need a uuu; it's simple and practical, and the entire board becomes a card reader.

 

Thanks!

Tags (1)
0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2193525%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIs%20there%20a%20simple%20way%20to%20update%20the%20DTB%20and%20kernel%20image%20on%20an%20eMMC%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2193525%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDuring%20development%2C%20we%20need%20to%20frequently%20update%20the%20DTB%20and%20kernel%20image.%3CBR%20%2F%3EUsing%20an%20SD%20card%20is%20very%20convenient%3B%20a%20card%20reader%20can%20read%20and%20write%20the%20DTB%20and%20kernel%20image%20on%20a%20FAT%20partition.%3CBR%20%2F%3EHowever%2C%20using%20an%20eMMC%20is%20very%20inconvenient.%20Is%20there%20a%20simpler%20method%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2207168%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Is%20there%20a%20simple%20way%20to%20update%20the%20DTB%20and%20kernel%20image%20on%20an%20eMMC%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2207168%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHere%20is%20the%20better%20way%2C%20I%20believe.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors-Knowledge-Base%2FHow-to-upgrade-Linux-Kernel-and-dtb-on-eMMC-without-UUU%2Fta-p%2F1116428%22%20target%3D%22_self%22%3EHow%20to%20upgrade%20Linux%20Kernel%20and%20dtb%20on%20eMMC%20without%20UUU%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2196054%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Is%20there%20a%20simple%20way%20to%20update%20the%20DTB%20and%20kernel%20image%20on%20an%20eMMC%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2196054%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3ETo%20enter%20on%20fastboot%20mode%20you%20need%3A%3C%2FP%3E%0A%3CP%3E1.%20Turn%20on%20the%20board%20and%20stop%20boot%20flow%20pressing%20any%20key%20to%20enter%20in%20U-boot.%3C%2FP%3E%0A%3CP%3E2.%20In%20U-boot%20enter%20next%20command%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Efastboot%200%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EUse%20the%20next%20command%20to%20send%20the%20file%20with%20UUU%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Euuu%20-v%20-b%20fat_write%20%3CFILE%3E%20mmc%200%3A1%20%3CFILE%3E%3C%2FFILE%3E%3C%2FFILE%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EExample%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Euuu%20-v%20-b%20fat_write%20hello_world.elf%20mmc%200%3A1%20hello_world.elf%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EBest%20regards.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2194555%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Is%20there%20a%20simple%20way%20to%20update%20the%20DTB%20and%20kernel%20image%20on%20an%20eMMC%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2194555%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EUse%20fastboot%2C%20as%20you%20mentioned%20before.%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2194461%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Is%20there%20a%20simple%20way%20to%20update%20the%20DTB%20and%20kernel%20image%20on%20an%20eMMC%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2194461%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EWhat%20are%20you%20referring%20for%3F%3C%2FP%3E%0A%3CP%3EUpload%20DTB%20with%20fastboot%20or%20flash%20eMMC%20from%20SD%20card%20or%20both%3F%3C%2FP%3E%0A%3CP%3EBest%20regards.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2193738%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Is%20there%20a%20simple%20way%20to%20update%20the%20DTB%20and%20kernel%20image%20on%20an%20eMMC%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2193738%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHow%20to%20do%20this%20specifically%3F%3C%2FP%3E%3CP%3EIs%20there%20any%20guidance%20document%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2193663%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Is%20there%20a%20simple%20way%20to%20update%20the%20DTB%20and%20kernel%20image%20on%20an%20eMMC%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2193663%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EYou%20can%20update%20the%20DTB%20file%20configuring%20your%20board%20in%20fastboot%20from%20U-boot%20and%20transfer%20the%20file%20with%20UUU.%3C%2FP%3E%0A%3CP%3ERegarding%20flash%20the%20image%20I%20suggest%20you%20re-flash%20with%20UUU%20or%20try%20to%20flash%20the%20eMMC%20from%20SD%20card%20but%20I%20think%20this%20process%20is%26nbsp%3Bmore%20complicated.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBest%20regards.%3C%2FP%3E%3C%2FLINGO-BODY%3E