Author Topic: Kexec From Debian To Sharprom, Really Working How-to!  (Read 18002 times)

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Kexec From Debian To Sharprom, Really Working How-to!
« Reply #15 on: December 29, 2008, 10:20:45 am »
So you're saying I cannot boot cacko from NAND using the multiboot kernel that cortez posted with zubuntu?
I did cat/proc/mtd It still spits out some sort of hex number.
(I'm not a math genus or binary wizard, so these numbers don't resemble the numbers the sharp users have posted above)
Code: [Select]
cat /proc/mtd
dev     size   erasesize  name
mtd0: 006b0000 00020000 "Filesystem"
mtd1: 00700000 00020000 "smf"
mtd2: 03500000 00020000 "root"
mtd3: 04400000 00020000 "home"
after reading another post on NAND partitions: https://www.oesf.org/forum/index.php?showto...sharpsl\.c
I found my kernel command line in dmesg, but it is severally truncated:
Code: [Select]
kernel command line: console=ttyS0 root=/dev/mtdblock2
« Last Edit: December 29, 2008, 11:04:28 am by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

ant

  • Full Member
  • ***
  • Posts: 167
    • View Profile
    • http://
Kexec From Debian To Sharprom, Really Working How-to!
« Reply #16 on: December 29, 2008, 12:13:01 pm »
Quote from: Jon_J
So you're saying I cannot boot cacko from NAND using the multiboot kernel that cortez posted with zubuntu?
...
mtd2: 03500000 00020000 "root"

For 2.4 kernels (cacko) the kernel-cmdline should contain the mtdparts string, because the old kernels cannot process the cmdline passed by atags nor appended by the (broken) bootloader.


Btw 53mb rootfs is the standard for 760 / 860 (husky and boxer).
0x03c00000-
0x00700000=
0x03500000 (=53mb)


Ant

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Kexec From Debian To Sharprom, Really Working How-to!
« Reply #17 on: December 29, 2008, 12:32:44 pm »
Quote from: ant
Quote from: Jon_J
So you're saying I cannot boot cacko from NAND using the multiboot kernel that cortez posted with zubuntu?
...
mtd2: 03500000 00020000 "root"

For 2.4 kernels (cacko) the kernel-cmdline should contain the mtdparts string, because the old kernels cannot process the cmdline passed by atags nor appended by the (broken) bootloader.


Btw 53mb rootfs is the standard for 760 / 860 (husky and boxer).
0x03c00000-
0x00700000=
0x03500000 (=53mb)


Ant
That goes back to my original question.
Where or how do I get the mtdparts string? It is NOT in /var/log/dmesg, like it is for the first several people in this thread.
Mine only shows: console=ttyS0 root=/dev/mtdblock2
The rest of it is missing.
When I originally flashed zubuntu, cortez said to use a copy of /boot/kernel-cmdline (from zubuntu) to boot "other" OS's
Could this be why my mtdparts string is truncated?

Thank you for your help on this. This kernel stuff and NAND stuff is all new to me.
« Last Edit: December 29, 2008, 12:36:26 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Kexec From Debian To Sharprom, Really Working How-to!
« Reply #18 on: December 29, 2008, 12:49:36 pm »
I just booted back to cacko and removed /boot/kernel-cmdline
Then I rebooted back to angstrom and then back to cacko (using kexec -f ~/zimage.bin)
This confirmed that the "kernel-cmdline" in /boot (in cacko's filesystem),
has no effect on the "kernel command line" shown in /var/log/dmesg. It is still the same.
« Last Edit: December 29, 2008, 12:51:09 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

cortez

  • Sr. Member
  • ****
  • Posts: 375
    • View Profile
    • http://www.omegamoon.com
Kexec From Debian To Sharprom, Really Working How-to!
« Reply #19 on: December 29, 2008, 01:31:32 pm »
/boot/kernel-cmdline should contain something like: mtdparts=sharpsl-nand:7168k@0k(smf),44032k@7168k(root),-(home) jffs2_orphaned_inodes=delete. I haven't tested this, so I don't know what it should be exactly. I gladly leave this for others to find out  
« Last Edit: December 29, 2008, 01:32:06 pm by cortez »
[div align=\"center\"]== == == == == == == == == == == == == ==
www.omegamoon.com
Zaurus SL-C750 - Died in a dreadful coffee experiment, has a second life somewhere in the Czech Republic
Zaurus SL-C1000 - Multiboot Zubuntu, Debian, Fedora, Poky, Android and others
Zaurus SL-C3100 - Development device, currently Zubuntu 2.0
Zaurus SL-6000L - The fridge is running Zubuntu 1.0
Zaurus SL-C860 - Cacko, untouched since kindly donated, waiting for Zubuntu
== == == == == == == == == == == == == ==[/div]

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Kexec From Debian To Sharprom, Really Working How-to!
« Reply #20 on: December 29, 2008, 07:59:35 pm »
Quote from: cortez
/boot/kernel-cmdline should contain something like: mtdparts=sharpsl-nand:7168k@0k(smf),44032k@7168k(root),-(home) jffs2_orphaned_inodes=delete. I haven't tested this, so I don't know what it should be exactly. I gladly leave this for others to find out  
I tried this string, it's still a no go. No option shows on the menu for my cacko nand partition when booting.
I'll wait for your next release.
I noticed on the instructions page for installing zubuntu, that you have a picture of Zaurus with zubuntu on flash, on the boot menu.

I found a thread in pdaxrom that has several "different" sets of numbers in this string, and a default set of numbers.
I would paste them in here, but I don't want to confuse anyone else with these widely varying sets of numbers.
You do know most people re-partition their flash in pdax beta3 to 121MB
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers