Hi everyone..
First of all i have to point out, my knowledge about UBI file systems and kernel booting internlas, is very limited. I also spent significant time searching this forum.
I have custom AM335X board with 8bit NAND MT29F2G08ABAEAH4-IT:E device. Also i ported SPL/U-Boot and Linux kernel form SDK 06.00.00.00/board-support/board-port-labs source trees. After few startup problems now i have SPL, U-Boot and kernel booting from NAND flash. Of course kernel will crash upon unsuccessful root file system probe...
In order to save some development time, i tried to use already pre-built UBI file system image, used for am335X-evm boards, and found in SDK 06.00.00.00/filesystem/arago-base-tisdk-image-am335x-evm.ubi.
The idea was simple, as supplied in here:
- bootargs=console=ttyO0,115200n8 noinitrd ip=off mem=128M rootdelay=5 rw ubi.mtd=7,2048 rootfstype=ubifs root=ubi0:am335x-evm-rootfs
13.953002] Waiting 5sec before mounting root device...
[ 25.074035] UBIFS: recovery needed
[ 25.506988] UBIFS: recovery completed
[ 25.531127] UBIFS: mounted UBI device 0, volume 0, name "am335x-evm-rootfs"
[ 25.576812] UBIFS: file system size: 30347264 bytes (29636 KiB, 28 MiB, 239 LEBs)
[ 25.626922] UBIFS: journal size: 9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
[ 25.674713] UBIFS: media format: w4/r0 (latest is w4/r0)
[ 25.712860] UBIFS: default compressor: lzo
[ 25.739715] UBIFS: reserved for root: 0 bytes (0 KiB)
[ 25.807769] VFS: Mounted root (ubifs filesystem) on device 0:12.
[ 25.853485] Freeing init memory: 236K
[ 27.124603] UBIFS error (pid 1): ubifs_read_node: bad node type (255 but expected 1)
[ 27.175537] UBIFS error (pid 1): ubifs_read_node: bad node at LEB 22:29952, LEB mapping status 1
[ 27.233001] UBIFS error (pid 1): do_readpage: cannot read page 87 of inode 716, error -22
[ 27.319305] UBIFS error (pid 1): ubifs_read_node: bad node type (255 but expected 1)
[ 27.370117] UBIFS error (pid 1): ubifs_read_node: bad node at LEB 22:29952, LEB mapping status 1
[ 27.427551] UBIFS error (pid 1): do_readpage: cannot read page 87 of inode 716, error -22
[ 27.486145] Kernel panic - not syncing: Attempted to kill init!
[ 27.525115] Backtrace:
Now i have few simple questions:
Can I expect this pre-built file system to work 'out of the box' or with some small intervention?
Or do i need to create custom one, having in mind this tutorial, to adjust NAND flash parameters.?
Can i use arago-base-tisdk-image-am335x-evm.tar.gz as base file system, to compile my custom one, regarding the fact that i can not find any init folder or scripts, and i guess init script should be supplied with bootargs?
Thanks in advance