![]() ![]() |
Mar 28 2008, 10:34 PM
Post
#46
|
|
|
Group: Members Posts: 2,003 Joined: 16-April 04 From: the Netherlands && /dev/null Member No.: 2,882 |
@ecc_hy:
This confirms my fear. I also got my flash content corrupted after mounting it in Debian. Originally I used "mount -t jffs2 /dev/mtdblock3 /mnt/nand" (mounting point can be anything) to mount the flash partition. There were lots of "Empty flash content at blahblahblah" messages throwing out on the screen... The flash area can still be mounted, but doing so it may have been corrupted... I've removed the relevant parts from the howto. Sorry for the fuss. How to remove the kernel modules: The easiest way is to use the modconf program. So first apt-get install modconf. Run "modconf" from the terminal. Scroll down the list and look for "kernel/drivers/mtd" and also "kernel/drivers/mtd/SOMETHING". There are a few entries of these. Enter each of them and select all the modules and uninstall them (i.e. if there is a "+" sign beside the name of the module, select it means to remove it, the same procedure as installing it). This will remove all the mtd-related modules. Check /etc/modules and delete any mtd entry there too. I suppose this is not an issue of Debian itself, but the problem of the mtd kernel modules in general in kernel 2.6 and how they work on flash content. The problem can be avoided if pdaXrom or pdaXii is installed on the internal disk or a SD card. (Is there anyway to do install Alice (or friends) without reformatting the internal disk, or to install the whole rootfs to SD?) pdaXii is usable because of tons of heavy tweaks and hacks. Many of the tricks can be applied to Debian as well. |
|
|
|
Apr 5 2008, 01:24 AM
Post
#47
|
|
|
Group: Members Posts: 150 Joined: 8-December 04 Member No.: 5,839 |
@matthis> did you make any progresses on this subject? i am a little bit confused as kexec for 2.4
seems to be a kernel module and for 2.6 a binary?! for the binary version you specify the kernel to boot by a parameter committed , for the module version kexec expects the corresponding kernel with a special name in the same directory, is it right? or do you have to copy the kernel into the same directory before compiling the module? what about the mtd modules? did anyone has success with sharp -> debian via kexec module? |
|
|
|
Apr 5 2008, 06:05 AM
Post
#48
|
|
|
Group: Members Posts: 218 Joined: 12-February 06 From: Tokyo Member No.: 9,124 |
About kexec for 2.4: no progress. This is how it works: loading the module creates a special file in /proc/kexec. Then the instructions are to: cat kernelImage > /proc/kexec.
But nothing happens. EDIT!!!!! Almost there! The reason why it did not work was that the kexec module only works with a vmlinux image, and I was using the yonggun kernel which is a bz image. I have tried with a vmlinux from angstrom, and it did something -- though I immediatly got a kernel panic: "unable to mount root fs on unknown-block(3,1)". |
|
|
|
Apr 7 2008, 09:12 AM
Post
#49
|
|
|
Group: Members Posts: 18 Joined: 22-September 07 Member No.: 20,647 |
Hello all,
I have a "dualboot" configuration with Angstrom+Cacko that works well (apart from the packages that don't work well or don't work at all on Angstrom). As Zdevil tested and stated, it's possible to kexec a Debian on a SD, then we can have Angstrom "kexecuting" Cacko on flash or Debian in the SD and Debian "kexecuting" Cacko on Flash. The only one that will not be "kexecuted" is Angstrom by Debian (that's not needed, you simply have to reboot). Tonight I'll post the results of this three systems boot options. Bye, glac |
|
|
|
Apr 7 2008, 12:00 PM
Post
#50
|
|
![]() Group: Admin Posts: 3,277 Joined: 29-July 04 From: Cambridge, England Member No.: 4,149 |
I have a "dualboot" configuration with Angstrom+Cacko that works well (apart from the packages that don't work well or don't work at all on Angstrom). As Zdevil tested and stated, it's possible to kexec a Debian on a SD, then we can have Angstrom "kexecuting" Cacko on flash or Debian in the SD and Debian "kexecuting" Cacko on Flash. The only one that will not be "kexecuted" is Angstrom by Debian (that's not needed, you simply have to reboot). Tonight I'll post the results of this three systems boot options. phew! hopefully it'll be worth it in the end! |
|
|
|
Apr 7 2008, 07:00 PM
Post
#51
|
|
|
Group: Members Posts: 18 Joined: 22-September 07 Member No.: 20,647 |
Hello all,
No problems "kexecuting" Debian under Angstrom. Network and all worked fine (made an apt-get update to test it). Installed kexec-tools from Zdevil and made an "kexec -f zImage" (from the Cacko kernel) and it worked. How do I configure reboot on Debian to reboot in the clean way to Cacko? Now we can have three working systems on the same Zaurus (mine is a SL-C3200)!!! If someone wants the specs of the system to try, please ask.I can make a short tutorial for Zdevil to update the first post. What do you think? Best regards, glac PS.: We could set the SD slot free for Debian if we use the youngun kernel for hda4 (to do so we would have to set the swap to an extended partition). Just an idea. |
|
|
|
Apr 7 2008, 11:05 PM
Post
#52
|
|
|
Group: Members Posts: 2,003 Joined: 16-April 04 From: the Netherlands && /dev/null Member No.: 2,882 |
No problems "kexecuting" Debian under Angstrom. Network and all worked fine (made an apt-get update to test it). Installed kexec-tools from Zdevil and made an "kexec -f zImage" (from the Cacko kernel) and it worked. How do I configure reboot on Debian to reboot in the clean way to Cacko? Congrats. I know dualbooting Debian/Angstrom works as it has been working on my C860. I have made a small hack to free Cacko from looking for hdd1/hdd2/hdd3 during booting. With this Cacko purely lives on NAND, and Debian and Cacko are independent of each other. http://www.oesf.org/forum/index.php?showtopic=25565 QUOTE Now we can have three working systems on the same Zaurus (mine is a SL-C3200)!!! Exactly. To me having the freedom and flexibility to switch to different working systems on the fly is the dream state of the Z. QUOTE If someone wants the specs of the system to try, please ask.I can make a short tutorial for Zdevil to update the first post. What do you think? Yes, please do. I will add your section to the first post. |
|
|
|
Apr 10 2008, 02:51 PM
Post
#53
|
|
![]() Group: Admin Posts: 3,277 Joined: 29-July 04 From: Cambridge, England Member No.: 4,149 |
Alas, following your instructions with Sharp rom already installed gives me the usual: "Warning: unable to open an initial console". and nothing more. I too have got this problem. I started with a totally clean cacko install, did the no-hd-require patch, installed the katastrophos kernel and modules and cacko worked fine. I then repartitioned the HDD into 3 parts, 1 being a 3.25G partition ext3, 2 being 256MB swap, and 3 being 512MB of fat16 for compatibility/hacking. I unpacked into hdd1 the debian-eabi tarball, copied in the new yonggun kernel 2.6.24.3 modules, copied in under a different name the cacko/sharp katastrophos kernel. Everything looked cool. Then I flashed the yonggun 2.6.24 kernel using kat's updater.sh. When the debian yonggun kernel boots, there's lot of text, I can't scroll back. The last few lines are (abbreviated as I'm lazy): kjournald starting, commit interval 5 seconds EXT3 FS on hda1, internal journal EXT3-fs: recovery complete EXT3-fs: mounted filesystem with ordered data mode. VFS: Mounted root (ext3 filesystem). Freeing init memory: 76K Warning: unable to open an initial console. I can suspend and resume, but nothing else has any effect! Any suggestions how to fix it? Meanwhile, I'm reflashing katastrophos's sharp-compat kernel. --edit-- OK, I'm back with working cacko, so that's good! --edit2-- just checked, I'm not mad, I did unpack the debian kernel modules, so I wonder what went wrong. --edit3-- ok, I am mad, I just reflashed the debian kernel, booted, and got a prompt. maybe because I left the CF memory card in? BTW, I note that if I leave my 4GB sd card in when I do the reset-OK-4 to flash, the Z says bad CF card. --edit4-- ok, so what's the root password.... hmmm... ah, it's "zaurus"! --edit5-- kexec stuff seemed to work, cacko kernel starts, but then the kernel panics. hmm. |
|
|
|
Apr 11 2008, 08:41 PM
Post
#54
|
|
|
Group: Members Posts: 218 Joined: 12-February 06 From: Tokyo Member No.: 9,124 |
Just out of curiosity and complete lack of knowledge: couldn't the booting scripts used for OpenBSD/Cacko dualboot be used for debian/cacko ? I like the way you get to choose at boot.
|
|
|
|
Apr 12 2008, 11:48 AM
Post
#55
|
|
![]() Group: Admin Posts: 3,277 Joined: 29-July 04 From: Cambridge, England Member No.: 4,149 |
can any suggest anything I can try to stop cacko kernel panic when it starts up? Before I flashed yonggun's kernel (which works to boot debian) cacko was working just fine.
|
|
|
|
Apr 13 2008, 12:32 AM
Post
#56
|
|
|
Group: Members Posts: 2,003 Joined: 16-April 04 From: the Netherlands && /dev/null Member No.: 2,882 |
can any suggest anything I can try to stop cacko kernel panic when it starts up? Before I flashed yonggun's kernel (which works to boot debian) cacko was working just fine. Just wonder if you can: 1) Reflash cacko kernel, preferably eviljazz's smoothie one? http://www.katastrophos.net/zaurus/kernels/current/ And then boot up the system once. 2) Reflash yonggun kernel for sharp bootloader (be careful about the different flavors) http://yonggun.tistory.com/68 3) Boot into Debian 4) Boot into Cacko using kexec ... And the last resort: NAND restore -> Steps 1-4. This *should* work. Can't help much here, because amazingly I've never run into any Cacko kernel panic scenario
Reason for edit: correction
|
|
|
|
Apr 13 2008, 12:34 AM
Post
#57
|
|
|
Group: Members Posts: 2,003 Joined: 16-April 04 From: the Netherlands && /dev/null Member No.: 2,882 |
I'm still trying to figure out why from time to time my setup fails to kexec into another Debian rootfs on SD.
But it doesn't really hurt. Actually a much easier way for me to test stuff in the sandbox is simply by chrooting into the rootfs on SD.... and it works. |
|
|
|
May 15 2008, 02:45 AM
Post
#58
|
|
|
Group: Members Posts: 51 Joined: 29-October 07 From: barcelona Member No.: 20,873 |
the quick way to dual boot debian (SD) and pdaxrom (HD) WITHOUT losing pdaxrom installation and sharing the swap partition
0) pdaxrom already installed in hd 1) prepare a SD with one partition (no swap) for debian rootfs and all 2) edit fstab of /sd/etc/fstab and: use the root of SD for debian root / and swap of already existing partition from /dev/hd2 (pdaxrom swap) Problem: I was using katastrophos kernel (fastfpe), but the dualbooting with kexec gives me "kernel panic: no init found" when booting pdaxrom Solution: use the pdaxrom kernel specified in the first post. loads of thanx, amazingly easy! EDIT: it's a bit confusing when reading, here is the debian fstab CODE #Debian on SD with one partition
/dev/mmcblk0p1 / ext3 rw 1 1 #We share the SWAP partition of pdaxrom in the internal HD /dev/hda2 /none swap sw 0 0 #We mount pdaxrom fakeroot (mkdir /pdaxrom) /dev/hda1 /pdaxrom ext3 rw 1 1 #Mount the VFAT partition /data (mkdir /data) /dev/hda3 /data vfat rw 1 1 ## Other essential mount points. You don't need to touch them. proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 |
|
|
|
May 23 2008, 09:17 AM
Post
#59
|
|
|
Group: Members Posts: 18 Joined: 1-August 06 From: Incheon, South Korea Member No.: 10,595 |
In pdaxrom, Is it possible to allocate the whole 121MB of NAND space as / on C1000?
I've tried it with eviljazz's kernel but failed. |
|
|
|
May 23 2008, 09:24 AM
Post
#60
|
|
![]() Group: Members Posts: 2,350 Joined: 30-July 06 Member No.: 10,575 |
Which version? You can use the beta 3 flasher to resize it, than install r198, if that's what you're trying to do.
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 19th May 2013 - 04:25 PM |