OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> Kexec From Debian To Sharprom, Really Working How-to!, you have to compile a kernel - easy
matthis
post Jul 15 2008, 05:22 PM
Post #1





Group: Members
Posts: 218
Joined: 12-February 06
From: Tokyo
Member No.: 9,124



Hello, I was frustrated about not being able to kexec successfully into sharprom, but frustration is over!!
Following Pelrun's hint that the NAND partition layout had to be hardcoded, I recompiled eviljazz's kernel passing the necessary argument to the kernel, and now using this kernel for kexec the dreaded: "unable to open initial console" is GONE!!"

How-to


1. On your Z
Boot into the sharprom using your usual kernel, check the file /var/log/dmesg and find the line which contains this:
mtdparts=sharpsl-nand:7168k@0k(smf),44032k@7168k(root),-(home) jffs2_orphaned_inodes=delete EQUIPMENT=5 LOGOLAND=1 DEFYEAR=2008 LOGO=1 LAUNCH=q
(Your values for sharpsl-nand may vary, and this is why you need to build your own kernel)

2. On your linux Desktop:
- download eviljazz's toolchain http://katastrophos.net/zaurus/kernels/com...1.09.05.tar.bz2
- download eviljazz's kernel tarball http://katastrophos.net/zaurus/kernels/cur....20-v55.tar.bz2

- Follow the instructions in the kernel tarball's README, but after executing "make oldconfig", do "make menuconfig".
In there, go to General Setup, and scroll down until you find the place to edit kernel arguments. By default, they should be: "console=ttyS0 root=/dev/mtdblock2"
Select that, and add the line you have noted on your Z earlier, so that the boot param becomes:
console=ttyS0 root=/dev/mtdblock2 mtdparts=sharpsl-nand:7168k@0k(smf),44032k@7168k(root),-(home) jffs2_orphaned_inodes=delete EQUIPMENT=5 LOGOLAND=1 DEFYEAR=2008 LOGO=1 LAUNCH=q
(Again, with your values for sharpsl-nand)

Go on with "make dep" and "make zImage", the resulting zImage will work for kexecing to sharprom!
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
gojira
post Dec 10 2008, 05:58 AM
Post #2





Group: Members
Posts: 124
Joined: 16-January 05
Member No.: 6,248



QUOTE(matthis @ Jul 16 2008, 12:22 PM) *
Hello, I was frustrated about not being able to kexec successfully into sharprom, but frustration is over!!
Following Pelrun's hint that the NAND partition layout had to be hardcoded, I recompiled eviljazz's kernel passing the necessary argument to the kernel, and now using this kernel for kexec the dreaded: "unable to open initial console" is GONE!!"


couldn't this be done just by passing the options with 'kexec --append=' ?

QUOTE(matthis @ Jul 16 2008, 12:22 PM) *
PS: If you have exactly the same values for sharpsl-nand, then you may want to try the kernel image I have built., to save compiling time wink.gif
http://web.mita.keio.ac.jp/~mh070504/sharp-zImage.bin
I am using SL-C3200 and I doubt the values are the same for other models, so be careful. Other SL-C3200 may also be different, depending on whether they use sharp/cacko/trisoft-sharp roms, etc... so check sharpsl-nand values!


and if not, is that kernel still available somewhere?
Go to the top of the page
 
+Quote Post

Posts in this topic
matthis   Kexec From Debian To Sharprom, Really Working How-to!   Jul 15 2008, 05:22 PM
xamindar   Here is my kernel line from the sharp rom on my 31...   Jul 16 2008, 10:11 PM
maemorandum   QUOTE(matthis @ Jul 16 2008, 02:22 AM) Fo...   Nov 13 2008, 01:34 AM
xamindar   QUOTE(maemorandum @ Nov 13 2008, 01:34 AM...   Nov 13 2008, 02:41 PM
maemorandum   using a c1000: 1. I prepared a sd-card with the z...   Nov 14 2008, 02:28 AM
xamindar   Did you recheck your step 3 after flashing cacko? ...   Nov 17 2008, 01:15 AM
maemorandum   QUOTE(xamindar @ Nov 17 2008, 10:15 AM) D...   Nov 18 2008, 05:12 AM
gojira   QUOTE(matthis @ Jul 16 2008, 12:22 PM) He...   Dec 10 2008, 05:58 AM
pelrun   QUOTE(gojira @ Dec 10 2008, 11:58 PM) cou...   Dec 10 2008, 06:10 AM
gojira   QUOTE(pelrun @ Dec 11 2008, 01:10 AM) It ...   Dec 10 2008, 07:40 AM
ant   >It would have been easier that way - pity it s...   Dec 10 2008, 07:46 AM
gojira   QUOTE(matthis @ Jul 16 2008, 12:22 PM) Bo...   Dec 10 2008, 08:19 AM
gojira   QUOTE(gojira @ Dec 11 2008, 03:19 AM) I j...   Dec 13 2008, 12:15 AM
Jon_J   QUOTE(matthis @ Jul 15 2008, 07:22 PM) 1....   Dec 28 2008, 05:42 PM
ant   QUOTEOr, How do I convert: 0x00000000-0x-00700000 ...   Dec 29 2008, 05:59 AM
Jon_J   So you're saying I cannot boot cacko from NAND...   Dec 29 2008, 07:20 AM
ant   QUOTE(Jon_J @ Dec 29 2008, 04:20 PM) So y...   Dec 29 2008, 09:13 AM
Jon_J   QUOTE(ant @ Dec 29 2008, 11:13 AM) QUOTE(...   Dec 29 2008, 09:32 AM
Jon_J   I just booted back to cacko and removed /boot/kern...   Dec 29 2008, 09:49 AM
cortez   /boot/kernel-cmdline should contain something like...   Dec 29 2008, 10:31 AM
Jon_J   QUOTE(cortez @ Dec 29 2008, 12:31 PM) /bo...   Dec 29 2008, 04:59 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th May 2013 - 11:00 PM