From: "andrzej zaborowski" <balrogg@gmail.com>
To: Juergen Lock <nox@jelal.kn-bremen.de>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] qemu-system-arm -M akita/terrier - which roms work? (have first patches now :)
Date: Sat, 28 Jul 2007 00:27:33 +0200 [thread overview]
Message-ID: <fb249edb0707271527p2fa05036s816e0d93dc25c345@mail.gmail.com> (raw)
In-Reply-To: <fb249edb0707271525s776e08cbpe8cb297951ad3064@mail.gmail.com>
On 28/07/07, andrzej zaborowski <balrogg@gmail.com> wrote:
> On 26/07/07, Juergen Lock <nox@jelal.kn-bremen.de> wrote:
> > Okay I got a little further now...
> >
> > On Wed, Jul 25, 2007 at 10:13:42PM +0200, andrzej zaborowski wrote:
> > > On 24/07/07, Juergen Lock <nox@jelal.kn-bremen.de> wrote:
> > >> I was under the impression that -append doesnt work, is this wrong?
> > >> Also /proc/cmdline on the zaurus is
> > >> console=ttyS0 root=/dev/mtdblock2
> > >> mtdparts=sharpsl-nand:7168k@0k(smf),44032k@7168k(root),-(home)
> > >> jffs2_orphaned_inodes=delete EQUIPMENT=5 LOGOLANG=1 DEFYEAR=2007 LOGO=1
> > >> LAUNCH=q
> > >> and even when I do pass that with -append to qemu I still dont get
> > >> anything on the serial console. So maybe the problem is just missing
> > >> kernel commandline... Can -append be fixed?
> > >
> > > No, not in qemu :( zaurus kernels don't accept any parameters from
> > > bootloaders, that's because they use the
> > > arch/arm/boot/compressed/head-sharpsl.S file instead of the generic
> > > arm head.S. Set the parameters in your .config.
> >
> > Actually... at least the sharp kernel does in fact take args as
> > I found out, but it wants them in the old-style struct param_struct
> > as defined in linux/include/asm-arm/setup.h (because of
> > CONFIG_SHARPSL_BOOTLDR_PARAMS e.g. in linux/arch/arm/mach-pxa/corgi.c)
>
> This must be only in the Sharp's kernel because 2.6 doesn't have it.
>
> > I've prepared a patch that adds an -old-param flag to qemu (to be used
> > together with -append), see patch-arm-oldparms (attached). And the
> > reason I got nothing on ttyS0 was simply that the sharp kernel had
> > CONFIG_SERIAL_CONSOLE unset... (as seen e.g. in
> > linux/arch/arm/def-configs/terrier-j)
>
> Great, I merged the patch, hopefully I didn't break anything. I think
> the hardcoded root device shouldn't be much problem, if there's anyone
> interested, they can change it.
>
> I'm wondering if there's a way to autodetect older Linux kernels
> through some magic numbers and automatically set up the old style boot
> parameters, and get rid of the -old-param switch.
>
> > >
> > >> Could be, but can `info jit' also show no change then? (qemu is still
> > >> using all the cpu time it can get.)
> > >
> > > Oh, then maybe it really hangs. I have only tested 2.6 kernels from
> > > different trees (but they were all descendants of linus' tree more
> > > than Sharp's) and OpenBSD (some post 4.0 cvs checkout). It's possible
> > > that Sharp kernels depend on something that is set up by the Sharp
> > > PROM code, which is closed-source (the one that runs the japanese
> > > menu). It should be possible to run it in qemu though.
> >
> > I've managed to build a sharp kernel with a modified config now
> > (sidux live cd to the rescue!) and then saw that its hanging after the
> > sound init. built a cross gdb (which was easier than I thought, luckily
> > qemu's gdbserver listens on the network so I didn't even have to build
> > a qemu snapshot on linux :), and found it hanging in a tight loop
> > waiting for bit 0 (TNF) of SASR0 in corgi_i2s_write in
> > linux/drivers/sound/pxa-i2s_spitz.c . Patched that (not sure its
> > right but it works for me, see patch-pxa-audio),
>
> Yes, I think your fix is correct, also merged. I don't know why I
> missed this bit.
> (drivers/sound/ doesn't exist in 2.6 either)
>
> > and now I get lots of
> > nand ecc errors and mount failures, I guess the mtdparts= arg isnt right
> > yet and/or the raw2flash.c source needs fixing...
>
> Likely the input to raw2flash.c was not what it expected. It expects a
> 1:1 image of the entire flash chip (but excluding oob - only data that
> can be normally read from /dev/mtblock* and in the same order), and
(/dev/mtdblock*)
> with a 10 byte header at the start of the file, which is discarded.
(rather 16)
> The partitions layout also matters. This format is the one that
> OpenEmbedded outputs, but maybe the original format is also the same,
> I don't know.
>
> Regards,
> Andrzej
>
next prev parent reply other threads:[~2007-07-27 22:27 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-24 1:11 [Qemu-devel] qemu-system-arm -M akita/terrier - which roms work? (and cursor issue) Juergen Lock
2007-07-24 1:25 ` andrzej zaborowski
2007-07-24 20:25 ` Juergen Lock
2007-07-25 20:13 ` andrzej zaborowski
2007-07-26 21:37 ` [Qemu-devel] qemu-system-arm -M akita/terrier - which roms work? (have first patches now :) Juergen Lock
2007-07-27 22:25 ` andrzej zaborowski
2007-07-27 22:27 ` andrzej zaborowski [this message]
2007-07-28 0:12 ` Juergen Lock
2007-07-29 1:15 ` [Qemu-devel] qemu-system-arm -M akita/terrier - which roms work? (more patches... :) Juergen Lock
2007-07-29 1:46 ` andrzej zaborowski
2007-07-29 22:30 ` Juergen Lock
2007-07-31 0:37 ` Juergen Lock
2007-07-31 20:42 ` Juergen Lock
2007-07-31 21:31 ` andrzej zaborowski
2007-07-31 23:32 ` Juergen Lock
2007-08-02 20:04 ` Juergen Lock
2007-08-20 22:45 ` [Qemu-devel] qemu-system-arm -M akita/terrier - which roms work? (more patches, this time keyboard... :) Juergen Lock
2007-07-24 1:36 ` [Qemu-devel] qemu-system-arm -M akita/terrier - which roms work? (and cursor issue) andrzej zaborowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fb249edb0707271527p2fa05036s816e0d93dc25c345@mail.gmail.com \
--to=balrogg@gmail.com \
--cc=nox@jelal.kn-bremen.de \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).