Krisbee wrote: 
> Ronnie,
> 
> Don't know if you are prepared to try this again. Once connected via
> SSH, and before you  "Accept installer disclaimer" that shows on the
> initial Web installer, this command should show what's happening: 
> 
> > 
Code:
--------------------
  >   > 
  > journalctl -f
  > 
--------------------
> > 
> 
> There's also a install log written to asi /tmp/install.log.  You
> should be able to view this as it's written to with:
> 
> > 
Code:
--------------------
  >   > 
  > tail -f /tmp/install.log
  > 
--------------------
> > 
> 
> You may see error message around these point: "Fetching uboot" &
> "Writing uboot"
> 
> 
> I had another look at Triode's cubietruck installer image and what
> ever else might be going wrong, there's certainly one obvious error
> now.  The installer images runs a script which includes setting some
> initial values:
> 
> > 
Code:
--------------------
  >   > 
  > #!/bin/bash
  > 
  > CARD=$1
  > HOSTNAME="soa-cubietruck"
  > FS_TAR=ArchLinuxARM-sun7i-latest.tar.gz
  > UBOOT_TAR=*uboot-cubietruck-2014.04-10-armv7h.pkg.tar.xz*
  > FIRMWARE=ap6210.zip
  > FIRMWARE_URL="http://dl.cubieforums.com/patwood/$FIRMWARE";
  > IMAGE="soa-image-cubietruck"
  > 
IMAGE_URL="https://github.com/SqueezeOnArch/soa-installers/raw/master/$IMAGE.img.zip";
  > 
--------------------
> > 
> 
> Later in the script The UBOOT file is downloaded and written to the SD
> card:
> 
> > 
Code:
--------------------
  >   > 
  > echo "Fetching uboot"
  > wget "http://mirror.archlinuxarm.org/armv7h/alarm/$UBOOT_TAR";
  > 
  > echo "Writing uboot"
  > tar -xf $UBOOT_TAR -C mnt --exclude='.PKGINFO' --exclude='.MTREE' 
--exclude='.INSTALL'
  > sync
  > dd if=mnt/boot/u-boot-sunxi-with-spl.bin of=$CARD bs=1024 seek=8
  > sync
  > 
--------------------
> > 
> 
> No doubt Triode had good reason to hard code this file name, but it's
> changed and no longer exists at
> http://mirror.archlinuxarm.org/armv7h/alarm/
> 
> The latest version is uboot-cubietruck-2015.01-5-armv7h.pkg.tar.xz 
> 
> The second snippet of code above does not include any test to see if
> the UBOOT download failed or not, so the script just proceeds
> regardless.  If it failed the install should abort with a message. 
> Triode could easily sort this out.  In the meantime, the UBOOT file
> name can be fixed manually by editing this script, It's easy to do in
> Linux as root:
> 
> 1. Mount installer img as a loop device, eg:
> 
> > 
Code:
--------------------
  >   > 
  > mount -o loop,offset=$((2048*512)) soa-image-cubietruck.img   /mnt
  > 
--------------------
> > 
> 
> 2. Navigate to install scripts directory:
> 
> > 
Code:
--------------------
  >   > 
  > cd /mnt/scripts
  > 
--------------------
> >  
> 
> 3. Use your preferred editor to change the UBOOT file name in
> create-sdcard-soa-cubietruck.sh e.g:
> 
> > 
Code:
--------------------
  >   > 
  > nano create-sdcard-soa-cubietruck.sh
  > 
--------------------
> >  
> 
> At line 5,  change
> "UBOOT_TAR=uboot-cubietruck-2014.04-10-armv7h.pkg.tar.xz" to
> "UBOOT_TAR=uboot-cubietruck-2015.01-5-armv7h.pkg.tar.xz" , and save
> the change.
> 
> (This is correct at time of writing, it may change at any time, so
> check for current name here:
> http://mirror.archlinuxarm.org/armv7h/alarm/ )
> 
> 4. Umount img, e.g :
> 
> > 
Code:
--------------------
  >   > 
  > cd /
  > umount /mnt
  > 
--------------------
> >   
> 
> 5. Write modified installer img to SD card as normal.
> 
> Hopefully, you or someone else can make this change and re-test the
> installer and see if the failure was due to this simple problem.
> 
> -EDIT: THERE'S ONE OTHER LINE THAT LOOKED ODD TO ME. AT LINE 15 IT
> SAYS:-
> > 
Code:
--------------------
  >   > 
  > echo -e "u\no\nn\np\n1\n24576\n\nw" | fdisk $CARD > /dev/null
  > 
--------------------
> > 
> 
> The installer requires a 4gb ,or greater, sd card size.  AFAIK, this
> command looks odd as it starts with a "U" which sets displayerd units
> to cylinders. So it attempts to create a single partition starting at
> cylinder 24576.  A 4GB SD card has only a 509 cylinders.  I think you
> could safely change this command to:
> 
> > 
Code:
--------------------
  >   > 
  > echo -e "o\nn\np\n1\n2048\n\nw" | fdisk $CARD > /dev/null
  > 
--------------------
> > 


Good News:

With help from Chris I have managed to install SoA on my Cubietruck.
Also LMS v7.8.0.

Bad News:

When I clicked on the Squeeze Server Web Interface I got the web gui but
before I could do any configuration I lost network connection.

I installed an Edimax wireless usb adaptor and tried a hard restart but
when I clicked "save" for the wireless set up, lost all connection.

A second hard restart reminded me of that line about "only a fool
repeats something that fails" (or something like that) from Mr E.

And a third one produced nothing, doh!!

Now this morning my hummingboard SoA also dropped off the Network, but
came back up after a hard restart (pull the plug and re-plug) and seems
to be running OK.

Don't know about the House of Denmark but the House of SoA needs a
little TLC methinks, me odd bodkin :p

Much respekt to Chris

atb

Ronnie


------------------------------------------------------------------------
Man in a van's Profile: http://forums.slimdevices.com/member.php?userid=43627
View this thread: http://forums.slimdevices.com/showthread.php?t=101624

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to