View previous topic :: View next topic |
Author |
Message |
musv Advocate
Joined: 01 Dec 2002 Posts: 3364 Location: de
|
Posted: Thu Jul 28, 2016 11:37 pm Post subject: Need basics to start with arm. |
|
|
Hi there,
a couple of months ago I bought a NSA326 as successor for my broken NSA325, which ran with Arch quite well for about 3 years.
The specs about the NSA326:
I access the console of this thing with a serial converter (tiny breakout). It has one downside: the device doesn't start, if the serial cable is connected. I can plug the cable, when the LED starts blinking, which probably means: U-boot has finished and is loading the kernel.
With that nasty restriction it doesn't seem to me a good idea to edit the U-boot configuration. So my idea was to copy the partitions (mtd0..6), concat them to a mtd-image and boot that image with Qemu. But this gives me the error:
Code: | qemu-system-arm -M vexpress-a9 -m 512M -kernel mtd.img -serial stdio
qemu: fatal: Trying to execute code outside RAM or ROM at 0x04000000
R00=00000000 R01=000008e0 R02=60000100 R03=00000000
R04=00000000 R05=00000000 R06=00000000 R07=00000000
R08=00000000 R09=00000000 R10=00000000 R11=00000000
R12=00000000 R13=00000000 R14=60010008 R15=04000000
PSR=400001db -Z-- A S und32 |
This means probably I chose the wrong cpu model. At this point my knowledge about ARM ends.
What's my goal:
- Get the original firmware of that device running in Qemu.
- Based on that Qemu configuration: build an environment with Gentoo and test it in Qemu
- Plug that hard disk with the working Gentoo to the NSA326, change the U-boot configuration and hope, to get a running system.
How do I have to start over? Is there a better strategy? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54578 Location: 56N 3W
|
Posted: Fri Jul 29, 2016 7:12 pm Post subject: |
|
|
musv,
Copying the partitions won't make a disk image. The partition table is outside any partition and you need that too.
The kernel will read the partition table to find the partition to mount as root.
If you make your image with dd, you get everything. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|