Modify

Opened 6 years ago

Closed 6 years ago

Last modified 22 months ago

#6627 closed defect (fixed)

booting with ramfs rootfs broken on ar71xx

Reported by: KanjiMonster Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: Cc:

Description

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).

Attachments (0)

Change History (6)

comment:1 Changed 6 years ago by whiskas

I can confirm the problem.
Thank you for finding a workaround KanjiMonster! Well... it works.

For those looking for the file: build_dir/linux-ar71xx/linux-2.6.32.7/lib/decompress.c

comment:2 Changed 6 years ago by KanjiMonster

Replying to whiskas:

I can confirm the problem.
Thank you for finding a workaround KanjiMonster! Well... it works.


Great to know its not me alone :-).

This works, but I am not paticularily happy about that workaround. It seems quite hackish. Therefore I am hoping someone knowing what is supposed to happen would take a look at it ;-).

Probably selecting a different compression algorithm for the ram disk should work, too.

comment:3 follow-up: Changed 6 years ago by florian

Can you try using different lzma compression parameters and see if that fixes your problem?

comment:4 in reply to: ↑ 3 Changed 6 years ago by anonymous

Replying to florian:

Can you try using different lzma compression parameters and see if that fixes your problem?

I would, but I can't find the settings for it. All I see in menuconfig is the compression option 'LZMA' for the ramdisk, but no further parameters.

comment:5 Changed 6 years ago by juhosg

  • Resolution set to fixed
  • Status changed from new to closed

Fixed with [19535]. Thanks!

comment:6 Changed 22 months ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.