[nas-2000] Re: Serial Port Chip

  • From: philipp Wehrheim <flipstar@xxxxxxx>
  • To: nas-2000@xxxxxxxxxxxxx
  • Date: Sat, 29 Dec 2007 22:56:13 +0100

Moin,

lass morgen mal chatten ...

Hier das start script

Gruss
--
flip

Rene Stegmaier wrote:
> Hallo Philipp,
> 
> 
> jetzt habe ich nochmal alles runtergeladen und entpackt, irgendwie is
> mein TAR unter OSX buggy gewesen und hatte nicht alles entpackt.
> Ich habe das startscript fuer linux gestartet leider bleibt er mit einem
> Kernel Panic hängen:
> 
> unable to open an initial console
> 
> Wie es schaut hat er kein root FS irgendws von mounted Readonline
> mekkert er noch.
> Weiter oben im DMESG sagt er das er keine gültige Partitionstabelle findet.
> mache ich was falsch oder ist noch nen bug im startscript?
> 
> Hast du eigentlich auch ICQ oder sowas? geht glaub manchmal leichter..
> 
> 
> Gruß René
> 
> 
> On 21.12.2007, at 15:42, philipp Wehrheim wrote:
> 
>>
>>
>> Dan Luedtke wrote:
>>> Hallo folks,
>>>
>>> i read the Howto for soldering an Serial Port to the NAS 1000, but i
>>> have a question left.
>>> (See Howto here
>>> http://www.nas-2000.org/mwiki/index.php?title=Solder_the_RS232-Port )
>>>
>>> - I don't have to solder the 90-degree-connector to the board, do i?
>>> It should be enough if i solder the ex-cdrom pin cable to a connector?
>>>
>> right
>>
>>> - Can someone supply me a picture of how it looks like when its
>>> finished?
>>> I tried to contact Felix Mellmann, he did this "debian from hdd"-thing,
>>> and i thought he might have some pictures. For some reasons i cannot get
>>> an email address of him, even if i search all over the universitys
>>> homepage.
>>>
>> http://flipstar.net/myfaq/index.php?action=artikel&cat=7&id=14&artlang=de
>>
>> I you have some free time, feel free to move the pics to the wiki
>> thx
>>
>>> By the way: I'm trying to get cryptonas (see cryptobox.org ) working on
>>> the nas1000 some day. If i succeed, i'll post more information here.
>>> Wish me luck.
>>
>> I do ;-)
>>
>> -- 
>> flip
>>
> 
> 
#!/bin/sh
#
# Configuration and start script for the RaidSonic build environment
#
# by Philipp Wehrheim                                   20071118
#  for RaidSonic GmbH
#
# The following variables have to be defined in order to autoconfigure
# the build environment.
#
######################################################################
#
# SecureShell Server fore remote login via a SSH Client.
#  Noter: The root-password is empty so ONLY enable SSH
#  on a TRUSTED NETWORK!
#  Values: On = 1, Off = 0
SSHD="0"
#
# Distcc is a distributed compiling tool
#  You'll only want to enable this if you have more than one computer
#  for the compilation
#  Values: On = 1, Off = 0
DISTCCD="0"
#
# HTTP-Server
#  You may want to enable this to access created packages
#  from the NAS.
#  Add the QEMU buildenv IP-Addr. to your IPKG-Mirror list.
#  Values: On = 1, Off = 0
HTTPD="1"
#
# The amount of RAM that is used by the buildenv
#  Note that currently only a value smaller or equal
#  256 Mbyte of RAM is supported.
#  <= 256Mbyte
RAM="256"
#
# The MAC-address is part of the XEN virtual maschine MAC-pool
#  If more than one instance of the build environment is executed
#  the MAC-adress has to be changed e.q. a MAC-adress has to be
#  unique in a network.
MACADD="00:16:E3:00:00:03"
#
# The IP-adress the build environment will use
IP="192.168.10.210"
#
# The default gateway on the network
GATEWAY="192.168.10.1"
#
# The netmask used on the network
NETMASK="255.255.255.0"
#
# The hostname used by the build environment
#  This value can make live really easy if one
#  uses more than one instances!
HOSTNAME="RS-Buildenv"
#
# By default the buildenv only uses one network
#  interface
DEV="eth0"
#
######################################################################
#
#
# determ the QEMU Path
QEMU=`which qemu-system-arm`
if [ $? = 0 ]; then
        echo "using: $QEMU"
else
        echo "QEMU could not be found on the system!!!"
        echo "Make sure it is in your \$PATH"
        exit 1
fi

#
# Note: If you prefere to use a "real" console like connection
#       - add "-nographic" to the QEMU CMD-line
#       - add "console=ttyAMA0" to the "-append" kernel parameter
#

CMD="-M versatilepb -m $RAM -localtime \
-net nic,macaddr=$MACADD -nographic -net tap,script=arm-ifup \
-hda disk.img \
-kernel zImage \
-append 'rw root=/dev/sda init=/bin/sh PATH=\"/bin:/usr/bin:/sbin:/usr/sbin\" 
panic=1 clock=pit ethaddr=$MACADD 
ip=$IP:$GATEWAY:$GATEWAY:$NETMASK:$HOSTNAME:$DEV:off DISTCCD=$DISTCCD 
SSHD=$SSHD HTTPD=$HTTPD console=ttyAMA0'"

eval "$QEMU $CMD"

Other related posts: