qemu emulator for the mini2440
Re: qemu emulator for the mini2440
I haven't managed to load stuff from the jffs2 either for the monent. It could be for various reasons. The NAND seems happy (despite the eraseblocks) so it could be the first ARM executable (init) fails for some reason...
I'm going to try to get the SD working, as it will tell us if it's the nand and the ARM failing.
I'm going to try to get the SD working, as it will tell us if it's the nand and the ARM failing.
Re: qemu emulator for the mini2440
Code: Select all
.___ __ __ __ __ ._.
| |/ |_ / \ / \___________| | __ _____| |
| \ __\ \ \/\/ / _ \_ __ \ |/ / / ___/ |
| || | \ ( <_> ) | \/ < \___ \ \|
|___||__| \__/\ / \____/|__| |__|_ \/____ >__
\/ \/ \/ \/


Re: qemu emulator for the mini2440
You are the best!
ethernet....?
ethernet....?

Re: qemu emulator for the mini2440
Bah :
+ ethernet doesn't work in the kernel so far (dhcp fails).
+ And maybe the touchscreen has the wrong coordinates
+ and yes the NAND seems borken obviously... since jffs2 doesn't work
But well, there's only me so far !
+ ethernet doesn't work in the kernel so far (dhcp fails).
+ And maybe the touchscreen has the wrong coordinates
+ and yes the NAND seems borken obviously... since jffs2 doesn't work
But well, there's only me so far !

Re: qemu emulator for the mini2440
Congratulations! Well done
Re: qemu emulator for the mini2440
I pushed my latest changes to the git in the -stable branch; check the new mini2440/mini2440_start.sh script; thats also the directory the script will look into to load u-boot, the nand etc..
I added the emulated usb and a usb keyboard, and that seems to work.
I added the emulated usb and a usb keyboard, and that seems to work.
-
- Posts: 14
- Joined: Mon Feb 02, 2009 10:55 am
Re: qemu emulator for the mini2440
Congratulations!!! YOU are our hero!
Re: qemu emulator for the mini2440
And Bingo! Network works, NFS root works 

Code: Select all
s3c_timers_write: Bad register 0x40
Linux version 2.6.29-rc6 (michel@yap) (gcc version 4.2.4) #216 PREEMPT Sun Mar 1 16:06:54 GMT 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: MINI2440
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: console=ttySAC0,115200 noinitrd init=/sbin/init root=/dev/nfs rw nfsroot=10.0.0.4:/mnt/oe ip=dhcp
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
....
input: QEMU 0.9.1 QEMU USB Keyboard as /devices/platform/s3c2410-ohci/usb1/1-3/1-3:1.0/input/input1
generic-usb 0003:0627:0001.0001: input,hidraw0: USB HID v1.11 Keyboard [QEMU 0.9.1 QEMU USB Keyboard] on usb-s3c24xx-3/input0
eth0: link up, 10Mbps, half-duplex, lpa 0x0400
Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 10.0.0.5, my address is 10.0.0.52
IP-Config: Complete:
device=eth0, addr=10.0.0.52, mask=255.255.255.0, gw=10.0.0.6,
host=10.0.0.52, domain=buserror.com, nis-domain=(none),
bootserver=10.0.0.5, rootserver=10.0.0.4, rootpath=
Looking up port of RPC 100003/2 on 10.0.0.4
Looking up port of RPC 100005/1 on 10.0.0.4
VFS: Mounted root (nfs filesystem) on device 0:14.
Freeing init memory: 148K
INIT: version 2.86 booting
Starting udevudevd version 124 started
Remounting root file system...
Unknown HZ value! (89) Assume 100.
ALSA: Restoring mixer settings...
Configuring network interfaces... No state is present for card S3C24XXUDA134X
/usr/sbin/alsactl: parse:1620: Unable to open file '/usr/share/alsa/init/00main': No such file or directory
No state is present for card S3C24XXUDA134X
eth0 no wireless extensions.
udhcpc (v1.13.2) started
run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
Sending discover...
Sending select for 10.0.0.52...
Lease of 10.0.0.52 obtained, lease time 31536000
run-parts: /etc/udhcpc.d/00avahi-autoipd exited with code 1
adding dns 10.0.0.5
done.
Starting portmap daemon: portmap.
Unknown HZ value! (88) Assume 100.
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
INIT: Entering runlevel: 5
Starting Dropbear SSH server: dropbear.
Starting system message bus: dbus.
Starting Hardware abstraction layer hald
Starting syslogd/klogd: done
* Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
[ ok ]
Starting Bluetooth subsystem: hcid.
Running ntpdate to synchronize clock.
Starting gpsd: No /dev/ttyS3 GPS device, aborting gpsd startup. Check /etc/default/gpsd
Starting GPE display manager: gpe-dm
.-------.
| | .-.
| | |-----.-----.-----.| | .----..-----.-----.
| | | __ | ---'| '--.| .-'| | |
| | | | | |--- || --'| | | ' | | | |
'---'---'--'--'--. |-----''----''--' '-----'-'-'-'
-' |
'---'
The Angstrom Distribution mini2440 ttySAC0
Angstrom 2009.X-test-20090225 mini2440 ttySAC0
mini2440 login: mini2440_bl_intensity: LCD Backlight now at 196/64.
Re: qemu emulator for the mini2440
You can really do /amazing/ thing with qemu
With the parameter "-sd fat:/tftboot" it will emulate a SD card on the host directory /tftboot, so you can mount it as if you had a FAT card there, so you can copy files back/forth in the host directory !
Next on the list is the touchscreen/ADC; here it doesn't work properly, and eventualy freezes qemu.
After that, fixing the nand and we're done
With the parameter "-sd fat:/tftboot" it will emulate a SD card on the host directory /tftboot, so you can mount it as if you had a FAT card there, so you can copy files back/forth in the host directory !
Next on the list is the touchscreen/ADC; here it doesn't work properly, and eventualy freezes qemu.
After that, fixing the nand and we're done

Re: qemu emulator for the mini2440
Cool!!!! 

Who is online
Users browsing this forum: No registered users and 5 guests