Flashing iMX6 NAND flash using SD card

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

Flashing iMX6 NAND flash using SD card

849 Views
Majid
Contributor II

Hi

I want to flash my module with an sd card. I replaced my file system and kernel with the file system and kernel in mkupdate tool and then I created the SD card and I flash the module. It worked fine. But when I replace uboot and dtb files the module flashes but does not work.
This is the log:
 

[    2.817718] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    2.826796] ALSA device list:
[    2.829793]   No soundcards found.
[    2.833731] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19
[    2.842092] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[    2.850337] Please append a correct "root=" boot option; here are the available partitions:
[    2.859101] 0100           65536 ram0
[    2.859183]  (driver?)
[    2.865606] 0101           65536 ram1
[    2.865613]  (driver?)
[    2.871863] 0102           65536 ram2
[    2.871868]  (driver?)
[    2.878227] 0103           65536 ram3
[    2.878233]  (driver?)
[    2.884523] 0104           65536 ram4
[    2.884528]  (driver?)
[    2.890657] 0105           65536 ram5
[    2.890663]  (driver?)
[    2.896895] 0106           65536 ram6
[    2.896900]  (driver?)
[    2.903043] 0107           65536 ram7
[    2.903046]  (driver?)
[    2.909384] 0108           65536 ram8
[    2.909389]  (driver?)
[    2.915638] 0109           65536 ram9
[    2.915644]  (driver?)
[    2.921773] 010a           65536 ram10
[    2.921777]  (driver?)
[    2.928025] 010b           65536 ram11
[    2.928029]  (driver?)
[    2.934309] 010c           65536 ram12
[    2.934314]  (driver?)
[    2.940527] 010d           65536 ram13
[    2.940531]  (driver?)
[    2.946777] 010e           65536 ram14
[    2.946781]  (driver?)
[    2.952994] 010f           65536 ram15
[    2.952998]  (driver?)
[    2.959288] b300         7741440 mmcblk0
[    2.959294]  driver: mmcblk
[    2.966149]   b301          307200 mmcblk0p1 a703235c-01
[    2.966152]
[    2.972972] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    2.981264] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
 
Labels (2)
0 Kudos
2 Replies

842 Views
igorpadykov
NXP Employee
NXP Employee

Hi Majid

 

one can try sect.sect.5.3 Manual step-by-step flashing to NAND flash

https://variwiki.com/index.php?title=Yocto_NAND_Flash_Burning

 

Best regards
igor

0 Kudos

836 Views
Majid
Contributor II

Hi Igor

Thank you for reply

Why adding .dtb file cause this problem?

Updating fs and kernel worked fine but when I update .dtb I got the error. The .dtb file tested by booting from SD card (not flashing) and it is worked fine too.

The problem occur when I trying to update .dtb only.

0 Kudos