mirror of
https://bitbucket.org/gwenhael/cubietruck-slackware.git
synced 2025-02-05 20:46:20 +01:00
fixing external links, added hostapd build + bin upgrade + example conf
This commit is contained in:
parent
6ecc450bdb
commit
0f8a72e3dc
1 changed files with 25 additions and 3 deletions
28
build.sh
28
build.sh
|
@ -97,7 +97,8 @@ cd $DEST/linux-sunxi
|
|||
make clean
|
||||
|
||||
# Adding wlan firmware to kernel source
|
||||
cd $DEST/linux-sunxi/firmware; wget -q http://www.mediafire.com/download/08rvp8db4qj7k21/ap6210.zip -O temp.zip; unzip -o temp.zip; rm temp.zip
|
||||
cd $DEST/linux-sunxi/firmware;
|
||||
unzip -o $SRC/bin/ap6210.zip
|
||||
cd $DEST/linux-sunxi
|
||||
|
||||
make -j2 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sun7i_defconfig
|
||||
|
@ -205,7 +206,7 @@ cp $SRC/scripts/cubian-firstrun $DEST/output/sdcard/etc/init.d
|
|||
|
||||
# script to install to NAND
|
||||
cp $SRC/scripts/nand-install.sh $DEST/output/sdcard/root
|
||||
|
||||
cp $SRC/bin/nand1-cubietruck-debian-boot.tgz $DEST/output/sdcard/root
|
||||
|
||||
# make it executable
|
||||
chroot $DEST/output/sdcard /bin/bash -c "chmod +x /etc/init.d/cubian-*"
|
||||
|
@ -218,7 +219,7 @@ echo -e $DEST_LANG'.UTF-8 UTF-8\n' > $DEST/output/sdcard/etc/locale.gen
|
|||
chroot $DEST/output/sdcard /bin/bash -c "locale-gen"
|
||||
echo -e 'LANG="'$DEST_LANG'.UTF-8"\nLANGUAGE="'$DEST_LANG':'$DEST_LANGUAGE'"\n' > $DEST/output/sdcard/etc/default/locale
|
||||
chroot $DEST/output/sdcard /bin/bash -c "export LANG=$DEST_LANG.UTF-8"
|
||||
chroot $DEST/output/sdcard /bin/bash -c "apt-get -qq -y install git dosfstools htop openssh-server ca-certificates module-init-tools dhcp3-client udev ifupdown iproute iputils-ping ntpdate ntp rsync usbutils uboot-envtools pciutils wireless-tools wpasupplicant procps libnl-dev parted cpufrequtils console-setup unzip bridge-utils"
|
||||
chroot $DEST/output/sdcard /bin/bash -c "apt-get -qq -y install git hostapd dosfstools htop openssh-server ca-certificates module-init-tools dhcp3-client udev ifupdown iproute iputils-ping ntpdate ntp rsync usbutils uboot-envtools pciutils wireless-tools wpasupplicant procps libnl-dev parted cpufrequtils console-setup unzip bridge-utils"
|
||||
chroot $DEST/output/sdcard /bin/bash -c "apt-get -qq -y upgrade"
|
||||
|
||||
# configure MIN / MAX Speed for cpufrequtils
|
||||
|
@ -255,6 +256,22 @@ iface eth0 inet dhcp
|
|||
# to generate proper encrypted key: wpa_passphrase yourSSID yourpassword
|
||||
EOT
|
||||
|
||||
|
||||
# create interfaces if you want to have AP. /etc/modules must be: bcmdhd op_mode=2
|
||||
cat <<EOT >> $DEST/output/sdcard/etc/network/interfaces.hostapd
|
||||
auto lo br0
|
||||
iface lo inet loopback
|
||||
|
||||
allow-hotplug eth0
|
||||
iface eth0 inet manual
|
||||
|
||||
allow-hotplug wlan0
|
||||
iface wlan0 inet manual
|
||||
|
||||
iface br0 inet dhcp
|
||||
bridge_ports eth0 wlan0
|
||||
EOT
|
||||
|
||||
# enable serial console (Debian/sysvinit way)
|
||||
echo T0:2345:respawn:/sbin/getty -L ttyS0 115200 vt100 >> $DEST/output/sdcard/etc/inittab
|
||||
|
||||
|
@ -297,6 +314,11 @@ cp $DEST/usb-redirector-linux-arm-eabi/files/rc.usbsrvd $DEST/output/sdcard/etc/
|
|||
# started by default ----- update.rc rc.usbsrvd defaults
|
||||
chroot $DEST/output/sdcard /bin/bash -c "update-rc.d rc.usbsrvd defaults"
|
||||
|
||||
# hostapd from testing binary replace.
|
||||
cd $DEST/output/sdcard/usr/sbin/
|
||||
tar xvfz $SRC/bin/hostapd21.tgz
|
||||
cp $SRC/config/hostapd.conf $DEST/output/sdcard/etc/
|
||||
|
||||
# sunxi-tools
|
||||
cd $DEST/sunxi-tools
|
||||
make clean && make -j2 'fex2bin' CC=arm-linux-gnueabihf-gcc && make -j2 'bin2fex' CC=arm-linux-gnueabihf-gcc && make -j2 'nand-part' CC=arm-linux-gnueabihf-gcc
|
||||
|
|
Loading…
Add table
Reference in a new issue