Skip to content

added burn raw file option - #133

Open
srdgame wants to merge 1 commit into
rockchip-linux:masterfrom
srdgame:master
Open

srdgame wants to merge 1 commit into
rockchip-linux:masterfrom
srdgame:master

Conversation

@srdgame

@srdgame srdgame commented Sep 8, 2026

Copy link
Copy Markdown

使用wl烧写 spinand时,如果文件是一个包含ubi分区的镜像文件(我们的情况是一个openwrt的spinand ubi镜像),MiniLoaderAll.bin (RK3506)就会展开该ubi镜像(将ubi分区表写入到最后两个PEB). 由于我们的镜像有UBI EOF marker,导致Linux Kernel会忽略掉后面所有PEB,也就找不到最后两个PEB上的分区表。 最终产生Linux Kernel找不到ubi分区而启动失败:

[   24.374752] ubi0 error: ubi_attach: PEB 183 ubi_io_is_bad:0
[   24.388463] ubi0 error: ubi_attach: PEB 183 ubi_io_read_ec_hdr:0
[   24.394906] UBI: EOF marker found, PEBs from 183 will be erased
[   24.402259] ubi0: scanning is finished
[   24.406410] ubi0 error: ubi_read_volume_table: the layout volume was not found
[   24.414796] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd1, error -22
[   24.422456] UBI error: cannot attach mtd1
[   24.427019] clk: Disabling unused clocks
[   24.431527] ALSA device list:
[   24.434719]   No soundcards found.
[   24.438567] dw-apb-uart ff0a0000.serial: forbid DMA for kernel console
[   24.445843] /dev/root: Can't open blockdev
[   24.450284] VFS: Cannot open root device "" or unknown-block(0,0): error -6
[   24.457760] Please append a correct "root=" boot option; here are the available partitions:
[   24.466737] 1f00            2048 mtdblock0 
[   24.466746]  (driver?)
[   24.473774] 1f01          260096 mtdblock1 
[   24.473781]  (driver?)
[   24.480798] b300         3932160 mmcblk0 
[   24.480805]  driver: mmcblk
[   24.488091]   b301           16384 mmcblk0p1 4b4e4c54-01
[   24.488097] 
[   24.495442]   b302          102400 mmcblk0p2 4b4e4c54-02
[   24.495451] 
[   24.502760] List of all bdev filesystems:
[   24.507059]  ext3
[   24.507064]  ext2
[   24.509148]  ext4
[   24.511209]  squashfs
[   24.513269]  f2fs
[   24.515700] 
[   24.519357] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   24.528229] CPU0: stopping
[   24.528237] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.6.144 #0
[   24.528244] Hardware name: Rockchip (Device Tree)
[   24.528255]  unwind_backtrace from show_stack+0xb/0xc
[   24.528279]  show_stack from dump_stack_lvl+0x2b/0x34
[   24.528298]  dump_stack_lvl from do_handle_IPI+0xab/0xcc
[   24.528309]  do_handle_IPI from ipi_handler+0x13/0x18
[   24.528318]  ipi_handler from handle_percpu_devid_irq+0x47/0xd0
[   24.528332]  handle_percpu_devid_irq from handle_irq_desc+0x25/0x30
[   24.528343]  handle_irq_desc from gic_handle_irq+0x55/0x64
[   24.528352]  gic_handle_irq from generic_handle_arch_irq+0x27/0x34
[   24.528364]  generic_handle_arch_irq from __irq_svc+0x71/0xb6
[   24.528374] Exception stack(0xc0c01f28 to 0xc0c01f70)
[   24.528383] 1f20:                   00000003 0079f6a4 00000001 c030e481 00000000 c0c04d28
[   24.528391] 1f40: c0c08440 c0c04d64 00000000 00000000 c0c04cc8 c0c082a8 00000000 c0c01f78

增加raw bin写入(RWMETHOD_LBA),避免镜像被MiniLoaderAll.bin处理我们的镜像。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant