Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - malik

Pages: [1] 2 3 ... 10
1
General Discussion / Qemu Zaurus Emulation, With Cacko/sharp Rom
« on: June 15, 2008, 03:46:13 am »
Quote from: matthis
The latest version of Qemu (0.9.1) adds support for Xscale emulation and specific zaurus emulation.

I have used this successfully for roms which do not use nand, like debian.

But I would love to get sharp-rom going under emulation.
Here are the steps needed to get going, from what I have gathered up until now.

1. Get sharp/cacko kernel
http://tetsu.homelinux.org/zaurus/kernel/v...-v18j-C3200.bin  (this is for 3200 --> terrier in qemu)

2. From the emergency menu of your zaurus, do a full NAND backup (I get a SYST320.DBK) file. (I have an sl-c3200)

3. extract the necessary bit from this backup file: use this script: http://web.mita.keio.ac.jp/~mh070504/nand-ripper.sh

As explained in the script, you may have to modify two parameters:

[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']YOU MAY NEED TO ADJUST THE TWO PARAMETERS BELOW.

Run the indicated commands on the zaurus to find your values.  It is unlikely
that ROMFS needs changing - I think this is fixed in the firmware at 7Mb,
i.e., 7 x 8 = 56 128kb blocks.  ROOTFS on the other hand will depend on how
you have divided up the remaining 121Mb between the root and user partitions.

EOC

ROMFS=56        # Use 'wc -c </dev/mtdblock1' and divide result by 128x1024.
ROOTFS=344      # Use 'df' to find the 1k-blocks for /dev/root and divide by 128.[/div]

Then run the script like this: ./nand-ripper.sh ripped_nand all SYST320.DBK

4. Get going with qemu:

qemu-system-arm -M terrier -kernerl sharp_kernel.bin -mtdblock ripped_nand -portrait


THIS FAILS AT THIS POINT: the kernel complains endlessly about reading nand error.
I suppose the script to rip has to be adjusted or something.

Anyone knowledgeable in this area?? Thanks! I think this is quite an exciting project.


hello matthis,

two remarks on your approach:
1. in many cases the original source code of qemu-arm has to be patched to work well,
have a look at the poky and neo homepages, maybe you can use their versions and
find some information there.
2. i am not sure, but i think that the zaurus expects a hd, at least in my case.
3. the emulation stops at "IrCOMM protocol (Dag Brattli)"


malik

2
Debian / [new] Kernel 2.6.24.4 With Cpufreq
« on: April 17, 2008, 01:00:38 pm »
@2or0 and matthis> is it necessary to have a special vmlinux kernel version to kexec debian from sd
within a nand cacko installation or can i try/use the above vmlinux version?

is there a way to extract vmlinux from a bzimage?

3
Debian / [new] Kernel 2.6.24.4 With Cpufreq
« on: April 12, 2008, 02:58:59 am »
@2or0> may i ask for a vmlinux sd version of your kernel to test things parallel to matthis? thanx...

4
Debian / Dualbooting/multiplebooting With Kexec!
« on: April 05, 2008, 05:24:19 am »
@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?

5
Debian / Dualbooting/multiplebooting With Kexec!
« on: March 28, 2008, 06:10:12 pm »
did i get it right? i can keep my cacko installation and my hd partition and install
debian on sd, kexecuting cacko kernel from debian? will try this soon...

another question: is there a 2.4 kernel which supports kexec so that i can use
cacko/sharp as my main distribution and kexec debian and so on for testing?

thanx...

6
Debian / What Are The Dual Booting Possibilities Currently?
« on: February 21, 2008, 04:35:37 pm »
okay, resizing the nand root partition gives the success. how can i do this for a cacko/debian eabi
dual booting on nand/sd? should i use the pdaxrom flashing tools?

7
Debian / A Clean, Fresh, Configured Eabi Rootfs Tarball
« on: December 21, 2007, 06:27:55 am »
Quote from: python
Is there a way to dual boot cacko and debian EABI using uboot?

good question, see also my postings above. i used kexec from the angstroem
feed, had no luck with this, but try it yourself. it boots the cacko kernel. maybe
this is possible with special nand tools.

8
Debian / Bricked Z? Please Help - Update Success!
« on: December 21, 2007, 06:21:03 am »
Quote from: Z3n
Alright all.  I need some help.  I am following this howto:

https://www.oesf.org/index.php?title=Q19:_I...n_EABI_on_SD%3F

I am at the point of trying to get U-Boot installed and I am not having any luck.  Following these directions and my Z won't respond after flashing u-boot to the system.  I held down the OK key and got booted into the Emergency Linux System.  I poked around and all was good.

The next step is to flash the kernel.  Turn off my Z and perform the reset procedure (after the files are on the CF card and inserted into the Z) and nothing happens.

Frustrating...

Any thoughts or ideas I could try differently?  I know people have had success with this and all I want to do is see the EABI Debian boot.  I had Titchy installed but wanted to try the latest to see it.


hello,

i used zdevils instructions in this forum, installing the rootfs on sd, not touching the hd. is your cf card mounted?
i had to change hda1 to hdc1 in /etc/fstab for this. the script mentioned there didn't worked for me, so i had to
use the nandlogical (see script) command for the yonggun kernel by hand.

9
Debian / A Clean, Fresh, Configured Eabi Rootfs Tarball
« on: December 16, 2007, 06:51:12 am »
1) uboot installation from cf card and japanese menu: works now for me
but only when the sd card isnt inserted (not uboot specific)
2) rebooting works fine after installing the yongun kernel, i.e. using
reset or a reboot from console. before its a really headache, the zaurus
seems not to react on anything or arbitrarily concerning wakeups/reboots or
d+m stuff. can someone confirm this behaviour?
3) script didnt worked for me, executed the nandlogical command by hand
4) some progress with kexec and a fresh cacko installation, getting a lot
of error messages and warnings, but now i can see the cacko screen, starting
linux and qtopia... the story ends here:-)

10
Debian / A Clean, Fresh, Configured Eabi Rootfs Tarball
« on: December 16, 2007, 03:47:02 am »
partitioning the cards and flashing r198 is not needed. bad news for me: kexec executes
the cacko kernel ripped from tools.tar, but the kernel hangs while booting. the preinstalled
nand image seems to be disturbed by uboot and/or the yonggun kernel. maybe i will try
it from a clean cacko or sharprom install...

11
Debian / Bricked Z? Please Help - Update Success!
« on: December 16, 2007, 03:38:33 am »
hello,

i hope you found a solution meanwhile. i went into the same procedure. i had three different zaurii
and it seems really hard to break them with flashing procedures. yesterday i flashed back with a
nand image at least 5 times:-) only fn+d+m+reset worked for me and i didnt understood when it
worked and when not: removing battery, power adapter, putting on and so on. meanwhile i installed
debian successfully, here are my "mistakes":
* i was not pressing the ok button immediately after uboot installation
* i was holding the ok button for a too short time!
* uboot did not install from a fat 16 formatted cf card and the japanese menu, success with an sd card
* pressing [1] to boot from the sd card gave me several kernel panics, again i cannot say why
* had to change /etc/fstab in uboot hda1->hdc1 for accessing the cf card within uboot

now it works, do not give up..

12
Debian / A Clean, Fresh, Configured Eabi Rootfs Tarball
« on: December 15, 2007, 03:19:23 pm »
thanx for the quick answers. it is possible to run angstrom from hd and cacko
from nand using kexec. does the necessity of uboot kill this kind of scenario for
yongun/debian and cacko? i mean booting to a debian console, executing kexec
from the angstrom feed... maybe uboot changes the nand flash in such a way that
this becomes impossible.

13
Debian / A Clean, Fresh, Configured Eabi Rootfs Tarball
« on: December 15, 2007, 11:27:36 am »
hello,

can someone please help:

* i want to use zdevils instructions to install debian on my z and went
into problems with uboot
* i read a thread of capn_fish what to do if something goes wrong while
installing uboot, but nothing helped.
* meanwhile i was able to install uboot using
pdaXrom-1.1.0r198-Kathrin-akita-uboot.zip coming from a fresh sharprom
(trisoft nand)/(fresh)cackorom installation, but after that i cant reboot
the zaurus using the on/off button and i cant get into the desired emergency
mode. nothing happens, cant get into the japanese mode or do c+d+reset to
install the kernel. sometimes even (fn+)d+m didnt worked, no headaches yet:-)
* i guess the installation order is alright. do i need to prepare the rootfs
on sd as the first step? i guess no...

my hope was to keep the cackorom in the flash and to use it (with kexec
from angstrom).

14
Debian / U-boot Vs Sharp Bootloaders
« on: December 12, 2007, 04:47:44 am »
Quote from: koen
kexec *boots* a new kernel, it does not "run within" something else. Please do some research before posting crappy FUD here.

From the freaking *first* link google gives on "kexec"

Code: [Select]
"Some machines have BIOSes that are either extremely slow to reboot,
or that cannot reliably perform a reboot.  In which case kexec
may be the only alternative to reboot in a reliable and timely manner.

@koen> sorry for that and thanx for googling for me, you are my man:-)

15
Debian / U-boot Vs Sharp Bootloaders
« on: December 11, 2007, 11:25:04 am »
Quote from: koen
you don't need uboot for that: http://linuxtogo.org/gowiki/AngstromAndCacko

i want to use cacko as my main system and wish to run angstrom/debian/etc natively. a bootloader should give me the choice,
kexec runs within angstrom.

Pages: [1] 2 3 ... 10