Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Need basics to start with arm.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM
View previous topic :: View next topic  
Author Message
musv
Advocate
Advocate


Joined: 01 Dec 2002
Posts: 3337
Location: de

PostPosted: Thu Jul 28, 2016 11:37 pm    Post subject: Need basics to start with arm. Reply with quote

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:
  1. Get the original firmware of that device running in Qemu.
  2. Based on that Qemu configuration: build an environment with Gentoo and test it in Qemu
  3. 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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54220
Location: 56N 3W

PostPosted: Fri Jul 29, 2016 7:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on ARM All times are GMT
Page 1 of 1

 
Jump to:  
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