Hi,
I'm having problems with the firmware.
I have tried an checkout that is a couple of weeks old and also one that checked out yesterday. My uBoot version is 1.1.6 (not that it should matter to much:))
After i flash the device and it boots up I dont get a persistent filesystem. But only a /dev/root.
And in dmesg i can see the following errors:
<5>UBI: attaching mtd3 to ubi0
<5>UBI: physical eraseblock size: 131072 bytes (128 KiB)
<5>UBI: logical eraseblock size: 129024 bytes
<5>UBI: smallest flash I/O unit: 2048
<5>UBI: sub-page size: 512
<5>UBI: VID header offset: 512 (aligned 512)
<5>UBI: data offset: 2048
<5>UBI: empty MTD device detected
<5>UBI: create volume table (copy #1)
<5>UBI: create volume table (copy #2)
<5>UBI: attached mtd3 to ubi0
<5>UBI: MTD device name: "persistent file system"
<5>UBI: MTD device size: 236 MiB
<5>UBI: number of good PEBs: 1888
<5>UBI: number of bad PEBs: 0
<5>UBI: max. allowed volumes: 128
<5>UBI: wear-leveling threshold: 4096
<5>UBI: number of internal volumes: 1
<5>UBI: number of user volumes: 0
<5>UBI: available PEBs: 1866
<5>UBI: total number of reserved PEBs: 22
<5>UBI: number of PEBs reserved for bad PEB handling: 18
<5>UBI: max/mean erase counter: 0/0
<5>UBI: background thread "ubi_bgt0d" started, PID 164
<5>UBI: mtd3 is detached from ubi0
<5>UBI: attaching mtd3 to ubi0
<5>UBI: physical eraseblock size: 131072 bytes (128 KiB)
<5>UBI: logical eraseblock size: 129024 bytes
<5>UBI: smallest flash I/O unit: 2048
<5>UBI: sub-page size: 512
<5>UBI: VID header offset: 512 (aligned 512)
<5>UBI: data offset: 2048
<5>UBI: attached mtd3 to ubi0
<5>UBI: MTD device name: "persistent file system"
<5>UBI: MTD device size: 236 MiB
<5>UBI: number of good PEBs: 1888
<5>UBI: number of bad PEBs: 0
<5>UBI: max. allowed volumes: 128
<5>UBI: wear-leveling threshold: 4096
<5>UBI: number of internal volumes: 1
<5>UBI: number of user volumes: 0
<5>UBI: available PEBs: 1866
<5>UBI: total number of reserved PEBs: 22
<5>UBI: number of PEBs reserved for bad PEB handling: 18
<5>UBI: max/mean erase counter: 2/0
<5>UBI: background thread "ubi_bgt0d" started, PID 175
<3>UBIFS error (pid 177): ubifs_get_sb: cannot open "ubi0", error -19
And when i boot the system it seems to clean and format the nand. because i get the following messages:
UBI: attaching mtd3 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd3 to ubi0
UBI: MTD device name: "persistent file system"
UBI: MTD device size: 236 MiB
UBI: number of good PEBs: 1888
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 1866
UBI: total number of reserved PEBs: 22
UBI: number of PEBs reserved for bad PEB handling: 18
UBI: max/mean erase counter: 2/0
UBI: background thread "ubi_bgt0d" started, PID 164
UBI device number 0, total 1888 LEBs (243597312 bytes, 232.3 MiB), available 1866 LEBs (240758784 bytes, 229.6 MiB), LEB size 129024 bytes (126.0 KiB)
UBI: mtd3 is detached from ubi0
ubiformat: mtd3 (NAND), size 247463936 bytes (236.0 MiB), 131072 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 bytes
libscan: scanning eraseblock 1887 -- 100 % complete
ubiformat: 1888 eraseblocks have valid erase counter, mean value is 0
7 % ormat: foUBI: attaching mtd3 to ubi0 97 % complete
ete omplUBI: physical eraseblock size: 131072 bytes (128 KiB)p
pletI: logical eraseblock size: 129024 byteso
- 98 smallest flash I/O unit: 2048
lock% cUBI: sub-page size: 512e
ock 1UBI: VID header offset: 512 (aligned 512)b
ing 85UBI: data offset: 2048t
ubiformat: formatting eraseblock 1887 -- 100 % complete
UBI: attached mtd3 to ubi0
UBI: MTD device name: "persistent file system"
UBI: MTD device size: 236 MiB
UBI: number of good PEBs: 1888
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 1866
UBI: total number of reserved PEBs: 22
UBI: number of PEBs reserved for bad PEB handling: 18
UBI: max/mean erase counter: 3/1
UBI: background thread "ubi_bgt0d" started, PID 175
UBI device number 0, total 1888 LEBs (243597312 bytes, 232.3 MiB), available 1866 LEBs (240758784 bytes, 229.6 MiB), LEB size 129024 bytes (126.0 KiB)
/ubibi: error!: "/dev/ubi0" has major:minor 254:0, but this doesUBIFS error (pid 177): ubifs_get_sb: cannot open "ubi0", error -19e
" is not an UBI device node
mount: mounting ubi0 on /persistent failed: No such device
My device has a 512MB NAND memory. but only now trying to allocate 256MB, since this is the standard for the BR4. Havent really made the simple necessary changes for that yet
I will dive more into this laster today. But thought i post it here to see if any of you guys have any inputs on this?
//Anders