diagnose UBIFS boot error July 17, 2015 08:43PM |
Registered: 14 years ago Posts: 24 |
Loading file '/boot/uImage' to addr 0x00800000 with size 2082196 (0x001fc594)... UBIFS error (pid 0): read_block: bad data node (block 508, inode 51788) UBIFS error (pid 0): do_readpage: cannot read page 508 of inode 51788, error -22 Error reading file '/boot/uImage' /boot/uImage not found!
Re: diagnose UBIFS boot error July 17, 2015 09:15PM |
Admin Registered: 13 years ago Posts: 18,997 |
> Loading file '/boot/uImage' to addr 0x00800000 > with size 2082196 (0x001fc594)... > UBIFS error (pid 0): read_block: bad data node > (block 508, inode 51788) > UBIFS error (pid 0): do_readpage: cannot read page > 508 of inode 51788, error -22 > Error reading file '/boot/uImage' > /boot/uImage not found! >>
Re: diagnose UBIFS boot error July 17, 2015 09:26PM |
Registered: 14 years ago Posts: 24 |
ubiformat /dev/mtd2 -s 512 ubiattach /dev/ubi_ctrl -m 2 ubimkvol /dev/ubi0 -N rootfs -m mkfs.ubifs --compr=zlib /dev/ubi0_0 mount -t ubifs ubi0:rootfs /mnt
mkdir /tmp/rootfs mount -o bind / /tmp/rootfs/ cp -a /tmp/rootfs/* /mnt/ cp -a /boot /mnt/to copy the USB install to NAND, followed by uboot settings to boot.
Re: diagnose UBIFS boot error July 17, 2015 09:29PM |
Registered: 14 years ago Posts: 24 |
Re: diagnose UBIFS boot error July 17, 2015 11:09PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: diagnose UBIFS boot error July 18, 2015 01:01AM |
Registered: 14 years ago Posts: 24 |
UBIFS: mounted UBI device 0, volume 0, name "rootfs" UBIFS: mounted read-only UBIFS: file system size: 511064064 bytes (499086 KiB, 487 MiB, 3961 LEBs) UBIFS: journal size: 9033728 bytes (8822 KiB, 8 MiB, 71 LEBs) UBIFS: media format: w4/r0 (latest is w4/r0) UBIFS: default compressor: zlib UBIFS: reserved for root: 0 bytes (0 KiB) Loading file '/boot/uInitrd' to addr 0x01100000 with size 9688174 (0x0093d46e)... Done Loading file '/boot/uImage' to addr 0x00800000 with size 2082196 (0x001fc594)... UBIFS error (pid 0): read_block: bad data node (block 508, inode 26197) UBIFS error (pid 0): do_readpage: cannot read page 508 of inode 26197, error -22 Error reading file '/boot/uImage' /boot/uImage not found! ## Booting kernel from Legacy Image at 00800000 ... Image Name: kernel 3.16.0-4-kirkwood Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2082132 Bytes = 2 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... Bad Data CRC ERROR: can't get kernel image! Marvell>>
Re: diagnose UBIFS boot error July 18, 2015 01:53AM |
Registered: 14 years ago Posts: 24 |
chattr -c /boot/uImage cp /boot/uImage /tmp/uImage cp /tmp/uImage /boot/uImage lsattr /boot/uImage
Re: diagnose UBIFS boot error July 18, 2015 02:14AM |
Admin Registered: 13 years ago Posts: 18,997 |
> chattr -c /boot/uImage > cp /boot/uImage /tmp/uImage > cp /tmp/uImage /boot/uImage > lsattr /boot/uImage >>
Re: diagnose UBIFS boot error July 18, 2015 09:49AM |
Registered: 14 years ago Posts: 24 |
ubifsmount rootfsI needed
ubifsmount ubi0:rootfs[/edit]
chattr -c "$source"
mv "$source" "$dest"