NSLU2-Linux
view · edit · print · history

Debian.CompileApex History

Hide minor edits - Show changes to markup

January 22, 2010, at 12:47 AM by Darryl Piper -- updated web address
Changed lines 87-88 from:

i am offering a pre-built padded but no env set apex.flash ( 131072 bytes ) ready for a Debian ( Little Endian ) on my website from my slug (http://83.151.196.147/files/apex.flash).

to:

i am offering a pre-built padded but no env set apex.flash ( 131072 bytes ) ready for a Debian ( Little Endian ) on my website from my slug (http://gt-four.bounceme.net/files/apex.flash).

November 19, 2007, at 04:29 PM by fcarolo -- formatting
Changed lines 87-88 from:

i am offering a pre-built padded but no env set apex.flash ( 131072 bytes ) ready for a Debian ( Little Endian ) on my website from my slug. http://83.151.196/147/files/apex.flash

to:

i am offering a pre-built padded but no env set apex.flash ( 131072 bytes ) ready for a Debian ( Little Endian ) on my website from my slug (http://83.151.196.147/files/apex.flash).

November 15, 2007, at 05:38 PM by caiacoa -- Bug 7760 mentioned
Changed lines 91-105 from:
to:

To confirm that the additional RAM is working properly please run:

 fatslug:~# memtest all

This will not work with a 128MB Slug since there is still Bug 7760 "Page Allocation Failure on ixp4xx (nslu2) with 128MB RAM"

Details: http://bugzilla.kernel.org/show_bug.cgi?id=7760

Please check and report otherwise! (btw with 64MB enabled memtest works fine.)

June 24, 2007, at 04:19 PM by Darryl Piper --
Added lines 86-91:

i am offering a pre-built padded but no env set apex.flash ( 131072 bytes ) ready for a Debian ( Little Endian ) on my website from my slug. http://83.151.196/147/files/apex.flash

this as mentioned above can be flashed from the NSLU2 itself or from Redboot. its version 1.5.6, ready for anyone with a FatSlug.

June 24, 2007, at 03:23 PM by Darryl Piper --
Changed line 85 from:

can confirm this works... the new paex loader can also be flashed from Redboot if needed.

to:

can confirm this works... the new apex loader can also be flashed from Redboot if needed.

June 24, 2007, at 03:23 PM by Darryl Piper --
Changed lines 78-85 from:

Now reboot, and see if it works.

to:

Now reboot, and see if it works.


can confirm this works... the new paex loader can also be flashed from Redboot if needed.

May 13, 2007, at 11:26 PM by Phil Endecott -- Remove content that should not have been copied when this page was created.
Changed line 78 from:

Now reboot, and see if it works. If you have a serial interface you should see APEX display it just before starting the kernel and the kernel display it shortly afterwards. Once the system has started you can check in /proc/cmdline.

to:

Now reboot, and see if it works.

May 12, 2007, at 04:58 PM by Steve G -- Pad with 0xFF for newer Apex. Added pad.py script for this.
Changed lines 42-46 from:

Copy this to the NSLU2:

to:

For later Apex, it's best to pad with 0xFF at the end so that the apex environment can be changed. An alternative to the steps from devio to here is to use the Python script http://tech.groups.yahoo.com/group/nslu2-linux/files/Custom%20Executables/pad.py which will swap the endianness, prepend the header and pad it with 0xFF. This script can be run on the PC or on the Slug:

Changed line 48 from:
 $ scp new_mtd2.bin slug:/tmp
to:
 $ pad.py apex.bin new_mtd2.bin
Added lines 51-55:

Copy this to the NSLU2:

 $ scp new_mtd2.bin slug:/tmp
May 02, 2007, at 11:41 AM by Phil Endecott -- CROSS_COMPILE is no longer and APEX config item.
Changed lines 1-4 from:

This page was created from text written by Phil Endecott for a Wiki page explaining how to change the kernel command line in APEX.

This assumes that you compile APEX on a PC; you'll need a standard cross-compilation environment (gcc, binutils etc). It is also possible to compile it natively on the NSLU2; that may be simpler but is not described here.

to:

This description assumes that you compile APEX on a PC; you'll need a standard cross-compilation environment (gcc, binutils etc). It is also possible to compile it natively on the NSLU2; that may be simpler but is not described here.

Deleted line 18:
  • change CROSS_COMPILE to arm-linux-gnu-
Changed line 23 from:
 $ make ARCH=arm
to:
 $ make ARCH=arm CROSS_COMPILE=arm-linux-gnu-
April 28, 2007, at 05:22 AM by dumfrac -- Remove double slashes
Changed line 5 from:

// Download, unpack.

to:

Download, unpack.

Changed lines 12-13 from:

// APEX uses something like the Linux kernel configuration system. // This copies the default NSLU2 config to ./.config.

to:

APEX uses something like the Linux kernel configuration system. This copies the default NSLU2 config to ./.config.

Changed line 17 from:

// Now make the necessary changes:

to:

Now make the necessary changes:

Changed lines 21-24 from:

// change CROSS_COMPILE to arm-linux-gnu- // change default kernel command line as required

// Build. Not sure if ARCH=arm is needed.

to:
  • change CROSS_COMPILE to arm-linux-gnu-
  • change default kernel command line as required

Build. Not sure if ARCH=arm is needed.

Changed lines 29-30 from:

// Now swap the endianness of the binary file. // Endianness is complex in the NSLU2 boot process!

to:

Now swap the endianness of the binary file. Endianness is complex in the NSLU2 boot process!

Changed line 34 from:

// We need a prepend a 16-byte header indicating the length of the binary:

to:

We need a prepend a 16-byte header indicating the length of the binary:

Changed line 39 from:

// 41536 dec = A240 hex

to:

41536 dec = A240 hex

Changed line 45 from:

// Copy this to the NSLU2:

to:

Copy this to the NSLU2:

Changed lines 50-54 from:

// On the NSLU2 below here

// APEX is in flash block 2 - look in /proc/mtd

// Sanity check

to:

On the NSLU2 below here

APEX is in flash block 2 - look in /proc/mtd

Sanity check

Changed lines 59-61 from:

// Do the first and last bits look vaguely similar?

// Now program it into the flash

to:

Do the first and last bits look vaguely similar?

Now program it into the flash

Changed line 66 from:

// Verify:

to:

Verify:

Changed lines 70-71 from:

// Should EOF on /tmp/new_mtd2.bin, since it doesn't occupy the whole region

to:

Should EOF on /tmp/new_mtd2.bin, since it doesn't occupy the whole region

April 28, 2007, at 05:17 AM by dumfrac -- Fix formatting
Added lines 1-2:

This page was created from text written by Phil Endecott for a Wiki page explaining how to change the kernel command line in APEX.

Changed lines 6-9 from:

$ wget ftp://ftp.buici.com/pub/apex/apex-1.4.7.tar.gz $ tar xzf apex-1.4.7.tar.gz $ cd apex-1.4.7

to:
 $ wget ftp://ftp.buici.com/pub/apex/apex-1.4.7.tar.gz
 $ tar xzf apex-1.4.7.tar.gz
 $ cd apex-1.4.7
Changed lines 14-15 from:

$ make debian-nslu2-arm_config

to:
 $ make debian-nslu2-arm_config
Changed lines 19-21 from:

$ make menuconfig

to:
 $ make menuconfig
Changed lines 26-27 from:

$ make ARCH=arm

to:
 $ make ARCH=arm
Changed lines 32-33 from:

$ devio '<<apex.bin' >apex_swapped.bin 'xp $$,4'

to:
 $ devio '<<apex.bin' >apex_swapped.bin 'xp $$,4'
Changed lines 37-38 from:

$ ls -l apex_swapped.bin -rw-r--r-- 1 phil staff 41536 2006-11-25 22:50 apex_swapped.bin

to:
 $ ls -l apex_swapped.bin 
 -rw-r--r-- 1 phil staff 41536 2006-11-25 22:50 apex_swapped.bin
Changed lines 42-44 from:

$ printf '\x00\x00\xA2\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' > a240hdr.bin $ cat a240hdr.bin apex_swapped.bin > new_mtd2.bin

to:
 $ printf '\x00\x00\xA2\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' > a240hdr.bin
 $ cat a240hdr.bin apex_swapped.bin > new_mtd2.bin
Changed lines 48-49 from:

$ scp new_mtd2.bin slug:/tmp

to:
 $ scp new_mtd2.bin slug:/tmp
Changed lines 57-58 from:

$ od -x /tmp/new_mtd2.bin $ od -x /dev/mtdblock2

to:
 $ od -x /tmp/new_mtd2.bin
 $ od -x /dev/mtdblock2
Changed lines 64-65 from:
  1. cat /tmp/new_mtd2.bin > /dev/mtdblock2
to:
 # cat /tmp/new_mtd2.bin > /dev/mtdblock2
Changed lines 69-71 from:
  1. cmp /dev/mtdblock2 /tmp/new_mtd2.bin
to:
 # cmp /dev/mtdblock2 /tmp/new_mtd2.bin
April 28, 2007, at 04:11 AM by dumfrac -- Text from the Wiki page on how to change the kernel command line in APEX
Added lines 1-50:

This assumes that you compile APEX on a PC; you'll need a standard cross-compilation environment (gcc, binutils etc). It is also possible to compile it natively on the NSLU2; that may be simpler but is not described here.

// Download, unpack. $ wget ftp://ftp.buici.com/pub/apex/apex-1.4.7.tar.gz $ tar xzf apex-1.4.7.tar.gz $ cd apex-1.4.7

// APEX uses something like the Linux kernel configuration system. // This copies the default NSLU2 config to ./.config. $ make debian-nslu2-arm_config

// Now make the necessary changes: $ make menuconfig // change CROSS_COMPILE to arm-linux-gnu- // change default kernel command line as required

// Build. Not sure if ARCH=arm is needed. $ make ARCH=arm

// Now swap the endianness of the binary file. // Endianness is complex in the NSLU2 boot process! $ devio '<<apex.bin' >apex_swapped.bin 'xp $$,4'

// We need a prepend a 16-byte header indicating the length of the binary: $ ls -l apex_swapped.bin -rw-r--r-- 1 phil staff 41536 2006-11-25 22:50 apex_swapped.bin // 41536 dec = A240 hex $ printf '\x00\x00\xA2\x40\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' > a240hdr.bin $ cat a240hdr.bin apex_swapped.bin > new_mtd2.bin

// Copy this to the NSLU2: $ scp new_mtd2.bin slug:/tmp

// On the NSLU2 below here

// APEX is in flash block 2 - look in /proc/mtd

// Sanity check $ od -x /tmp/new_mtd2.bin $ od -x /dev/mtdblock2 // Do the first and last bits look vaguely similar?

// Now program it into the flash

  1. cat /tmp/new_mtd2.bin > /dev/mtdblock2

// Verify:

  1. cmp /dev/mtdblock2 /tmp/new_mtd2.bin

// Should EOF on /tmp/new_mtd2.bin, since it doesn't occupy the whole region

Now reboot, and see if it works. If you have a serial interface you should see APEX display it just before starting the kernel and the kernel display it shortly afterwards. Once the system has started you can check in /proc/cmdline.

view · edit · print · history · Last edited by Darryl Piper.
Based on work by fcarolo, caiacoa, Darryl Piper, Phil Endecott, Steve G, and dumfrac.
Originally by dumfrac.
Page last modified on January 22, 2010, at 12:47 AM