KennethMcNutt
New Member
I have very limited knowledge of Linux ... Let's just say if I can't find a step-by-step.. Well, I'm not able..
Sometimes even with one I still can't do it..
Like now..
My switch is down and Allied wants a service contract to send me a copy of the OE firmware that it came with..
But I have an open source builder for most all their stuff !!!! I just can't figure out why its not working..
It is set up to basically to be a one-command build.
But I get error after error as I go about fixing its issue..
I have added links to the network pkg for the x510.. below and the builder and my old firmware (that gives me "bad release header") and won't install
drive.google.com
If someone could help me with it I would be grateful,
Thanks in advance, Ken
(the how-to I got with it.. )
This is a basic build howto.
-----------------------------
The enclosed tarball contains:
- chroot, this provides the toolchain
- buildsys, a tool for building a set of packages
- the cached download directory (dl) that buildsys usually generates
(with all the GPL code and some BSD code too).
- The wrapper scripts necessary for building.
- this README.txt
To build the main release
-------------------------
1] build requirements
1.1] to get a complete replica of an official release you will need
to scp or tftp "/pkg/network*.pkg" from your switch and place it into
the dl directory (this is our proprietary package (squashfs image)
containing the switch driver, protocols etc...).
To get access to this file you will need to create a shell script
on the device and activate it:
awplus#edit copy.sh
#insert the following text
cp /pkg/*.pkg /flash/
#Activate the script. This will copy the package to the flash directory
# (Ensure you have ample space left on your device)
awplus#activate copy.sh
Use your preferred method to copy the file off the switch.
1.2] Chroot
The build is done in a gentoo chroot. The chroot is provided as a
.deb package located at chroot/awplus-chroot6_20150223-1atl2_all.deb
On debian based systems, this can just be installed. If your Linux
system is not debian based, you can still install the chroot
manually using the following steps:
# Create a temporary working directory
$ mkdir tmpchroot
$ cd tmpchroot
# Extract the debian package into the temporary directory
$ ar x path/awplus-chroot6_20150223-1atl2_all.deb
# ls will show a control.tar.* and data.tar.gz
# Install the chroot. This will extract the data to /chroot/20170112d
$ sudo tar -C / -xSpf tmpchroot/data.tar.*
# Run the post-install script.
$ tar -zxf control.tar.gz ./postinst
$ sudo bash postinst
# Remove the temporary working directory
$ cd ..
$ rm -rf tmpchroot
Be careful not to manually delete the installed chroot as it mounts
your home directory inside when doing builds, so there is a danger
that you will accidentally erase your home directory. Make sure any
mounted directories are unmounted first.
1.3] Userchroot
# Build userchroot which allows using a chroot without being the root user:
$ cd scripts
$ gcc -o userchroot userchroot.c
# The chroot.py scripts expect userchroot to live in /usr/bin
$ sudo cp userchroot /usr/bin/
# Give userchroot suid privileges to allow it to work
$ sudo chmod u+s /usr/bin/userchroot
NOTE:
Toolchain patches and build options are in the chroot tarball, under
/chroot/20170112d/usr/local/portage
sys-libs/uclibc
sys-devel/binutils
sys-devel/gcc
sys-devel/gdb
sys-devel/insight
sys-kernel/linux-headers
NOTE: 20170112d is the date of the portage release file that the
chroot was created from.
1.4 Build scripts.
The scripts in the scripts directory are used to kick off the
build process. They need to be somewhere in your path.
Alternatively you can add the scripts directory to your path.
1.5 tftpboot directory
The build process attempts to mount the directory /tftpboot inside
the chroot to copy the release output to. If this directory doesn't
exist, you will need to create it.
$ sudo mkdir /tftpboot
$ sudo chmod a+rwx /tftpboot
2]
cd into the buildsys directory
buildsys x510 -- network=import
This should give you a file called "x510-5.4.8-$(whoami).rel"
which is a fully fledged release.
For other platforms, replace x510 with the name of the platform.
The names required to build various platforms can be derived from
the names of the .lua files in the root of the buildsys directory.
Have fun!
Sometimes even with one I still can't do it..
Like now..
My switch is down and Allied wants a service contract to send me a copy of the OE firmware that it came with..
But I have an open source builder for most all their stuff !!!! I just can't figure out why its not working..
It is set up to basically to be a one-command build.
But I get error after error as I go about fixing its issue..
I have added links to the network pkg for the x510.. below and the builder and my old firmware (that gives me "bad release header") and won't install
Allied Telesis firmware builder - Google Drive

Thanks in advance, Ken
(the how-to I got with it.. )
This is a basic build howto.
-----------------------------
The enclosed tarball contains:
- chroot, this provides the toolchain
- buildsys, a tool for building a set of packages
- the cached download directory (dl) that buildsys usually generates
(with all the GPL code and some BSD code too).
- The wrapper scripts necessary for building.
- this README.txt
To build the main release
-------------------------
1] build requirements
1.1] to get a complete replica of an official release you will need
to scp or tftp "/pkg/network*.pkg" from your switch and place it into
the dl directory (this is our proprietary package (squashfs image)
containing the switch driver, protocols etc...).
To get access to this file you will need to create a shell script
on the device and activate it:
awplus#edit copy.sh
#insert the following text
cp /pkg/*.pkg /flash/
#Activate the script. This will copy the package to the flash directory
# (Ensure you have ample space left on your device)
awplus#activate copy.sh
Use your preferred method to copy the file off the switch.
1.2] Chroot
The build is done in a gentoo chroot. The chroot is provided as a
.deb package located at chroot/awplus-chroot6_20150223-1atl2_all.deb
On debian based systems, this can just be installed. If your Linux
system is not debian based, you can still install the chroot
manually using the following steps:
# Create a temporary working directory
$ mkdir tmpchroot
$ cd tmpchroot
# Extract the debian package into the temporary directory
$ ar x path/awplus-chroot6_20150223-1atl2_all.deb
# ls will show a control.tar.* and data.tar.gz
# Install the chroot. This will extract the data to /chroot/20170112d
$ sudo tar -C / -xSpf tmpchroot/data.tar.*
# Run the post-install script.
$ tar -zxf control.tar.gz ./postinst
$ sudo bash postinst
# Remove the temporary working directory
$ cd ..
$ rm -rf tmpchroot
Be careful not to manually delete the installed chroot as it mounts
your home directory inside when doing builds, so there is a danger
that you will accidentally erase your home directory. Make sure any
mounted directories are unmounted first.
1.3] Userchroot
# Build userchroot which allows using a chroot without being the root user:
$ cd scripts
$ gcc -o userchroot userchroot.c
# The chroot.py scripts expect userchroot to live in /usr/bin
$ sudo cp userchroot /usr/bin/
# Give userchroot suid privileges to allow it to work
$ sudo chmod u+s /usr/bin/userchroot
NOTE:
Toolchain patches and build options are in the chroot tarball, under
/chroot/20170112d/usr/local/portage
sys-libs/uclibc
sys-devel/binutils
sys-devel/gcc
sys-devel/gdb
sys-devel/insight
sys-kernel/linux-headers
NOTE: 20170112d is the date of the portage release file that the
chroot was created from.
1.4 Build scripts.
The scripts in the scripts directory are used to kick off the
build process. They need to be somewhere in your path.
Alternatively you can add the scripts directory to your path.
1.5 tftpboot directory
The build process attempts to mount the directory /tftpboot inside
the chroot to copy the release output to. If this directory doesn't
exist, you will need to create it.
$ sudo mkdir /tftpboot
$ sudo chmod a+rwx /tftpboot
2]
cd into the buildsys directory
buildsys x510 -- network=import
This should give you a file called "x510-5.4.8-$(whoami).rel"
which is a fully fledged release.
For other platforms, replace x510 with the name of the platform.
The names required to build various platforms can be derived from
the names of the .lua files in the root of the buildsys directory.
Have fun!