WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How can I make proper core.gz of Raspberry Pi?  (Read 15271 times)

Offline Akane

  • Jr. Member
  • **
  • Posts: 71
    • My home server by RaspberryPi
How can I make proper core.gz of Raspberry Pi?
« on: May 26, 2013, 03:05:33 AM »
Hi all.

I would like to use my remastered initramfs, core.gz.
I know the procedure of making core.gz is below(according to wiki):
Code: [Select]
# cd coredir
# find | cpio -o -H newc | gzip -c9 >../rpicore.gz

But it doesn't work. Kernel was panicked.
The message is below:
Code: [Select]
Kernel panic - not syncing: VFS: Unable to mount root fs...
So I would like to know how to make proper core.gz.

Thanks,
Akane.
Sorry for my terrible English.
Country: Japan
Interested in: HPC, low-level programming, embedded system and so on

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: How can I make proper core.gz of Raspberry Pi?
« Reply #1 on: May 26, 2013, 04:32:08 AM »
Did you set the length in cmdline.txt (initrd=...)?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Akane

  • Jr. Member
  • **
  • Posts: 71
    • My home server by RaspberryPi
Re: How can I make proper core.gz of Raspberry Pi?
« Reply #2 on: May 26, 2013, 04:41:53 AM »
Hello bmarkus.

Oh! Thank you for your advice!
I didn't know the 2nd parameter of initrd= of cmdline.txt is the core.gz's file size.
Now it booted properly.

Thanks a lot!

Regards,
Akane.
Sorry for my terrible English.
Country: Japan
Interested in: HPC, low-level programming, embedded system and so on