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
maemorandum
post Nov 13 2008, 01:34 AM
Post #2





Group: Members
Posts: 57
Joined: 12-March 08
From: North Pole
Member No.: 21,496



QUOTE(matthis @ Jul 16 2008, 02:22 AM) *
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!!"


Thank you, matthis. Following your guide, i got a working sharp-rom zimage for dualbooting!
But, i need the cacko-rom one instead of the sharp one.

So, is there an instruction to get a "hardcoded" cacko-zImage (C1000/C3200)?
Go to the top of the page
 
+Quote Post
xamindar
post Nov 13 2008, 02:41 PM
Post #3





Group: Members
Posts: 803
Joined: 30-March 04
From: California
Member No.: 2,368



QUOTE(maemorandum @ Nov 13 2008, 01:34 AM) *
But, i need the cacko-rom one instead of the sharp one.

So, is there an instruction to get a "hardcoded" cacko-zImage (C1000/C3200)?

I don't get it. Is there some special cacko kernel that you were using before? The kernel should work on both cacko and sharp rom as they use the same kernel anyway. Please explain why these instructions didn't work for you.
Go to the top of the page
 
+Quote Post
maemorandum
post Nov 14 2008, 02:28 AM
Post #4





Group: Members
Posts: 57
Joined: 12-March 08
From: North Pole
Member No.: 21,496



using a c1000:

1. I prepared a sd-card with the zaurus_eabi_rootfs_071201.tar.bz2 and the 2.6.24.3-yonggun kernel modules and checked fstab, depmod hwclock.

2. I made a trisoft sharp nand restore from cf-card

3. I started the sharp-rom and noticed the mtdparts=sharpsl-nand command

4. I installed the http://katastrophos.net/zaurus/kernels/com...1.09.05.tar.bz2 and the eviljazz's kernel tarball and compiled the kernel with the new noticed line

5. I copied the zImage.bin.sd1 and the updater.sh for the C1000 on a cf-card and did the yonggun kernel installation for the sharp bootloader

6. I booted into debian from the inserted sd-card without problems, installed the kexec package and placed the compiled zimage and sharp-bootloader-script into the /root directory.

7. I started the script and the C1000 perfectly boots into the sharp-rom. (Dualbooting eabi-sharprom)

-----------------------------------------------------------------------------------------------------------------

In order to boot into cacko i installed the cacko-light rom with 19 MB resize (flash-utility) and eviljazz kernel update fastfpe. Then i went on with number 5. Unfortunately the booting of the cacko started and failed with the old "initial console" error.

Did it once more with the original cacko-light rom with 19 MB resize without kernel update. This ended in a
CODE
Kernel panic: Attempted to kill init!
too.
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: 22nd May 2013 - 03:47 AM