booting with ramfs rootfs broken on ar71xx
|Reported by:||KanjiMonster||Owned by:||developers|
|Priority:||normal||Milestone:||Barrier Breaker 14.07|
When creating an image with a ramfs rootfs, it won't boot (at least on a routerstation pro):
IP route cache hash table entries: 1024 (order: 0, 4096 bytes) TCP established hash table entries: 4096 (order: 3, 32768 bytes) TCP bind hash table entries: 4096 (order: 2, 16384 bytes) TCP: Hash tables configured (established 4096 bind 4096) TCP reno registered NET: Registered protocol family 1 Kernel panic - not syncing: junk in compressed archive
Through sprinkling printks in the code I determined that it does not find a suitable compressor, as the first two bytes of the stream are 0x6d 0x00, but in lib/compress.c lzma has 0x5d 0x00.
After changing the 0x5d to 0x6d it successfully decompresses the rootfs and boots, but I don't know if this is the correct place for that (and whether it even is supposed to have changed to 0x6d).