diff --git a/makeboarddeb.sh b/makeboarddeb.sh index 0223e36a90..a879a12a35 100644 --- a/makeboarddeb.sh +++ b/makeboarddeb.sh @@ -147,8 +147,6 @@ create_board_package (){ for i in $(ls -w1 $SRC/lib/config/fex/*.fex | xargs -n1 basename); do fex2bin $SRC/lib/config/fex/${i%*.fex}.fex $destination/boot/bin/${i%*.fex}.bin done - # One H3 image for all Fast Ethernet equipped Orange Pi H3 - cp -p "$destination/boot/bin/orangepi2.bin" "$destination/boot/bin/orangepih3.bin" # bluetooth device enabler - for cubietruck install -m 755 $SRC/lib/bin/brcm_bt_reset $destination/usr/local/bin diff --git a/scripts/firstrun b/scripts/firstrun index d0934049ef..0665bd3760 100644 --- a/scripts/firstrun +++ b/scripts/firstrun @@ -103,69 +103,8 @@ display_alert() { } autodetect_sunxi() { - # This function adjusts script.bin, hostname and cpufreq settings based on - # /run/machine.id so that two OS images (one built for GbE H3 devices like - # Orange Pi Plus or Banana Pi M2+ and one for the other H3 devices using - # the internal Ethernet PHY or Banana Pro vs. Pi) can be shipped. - # - # TODO for mainline kernel: Ship with u-boot debs for all Oranges and install - # the right one instead of trying to relink script.bin if detecting mainline - # kernel [[ -f /proc/device-tree/model ]] - # trigger red or blue LED as user feedback - echo heartbeat >/sys/class/leds/*red*/trigger 2>/dev/null || echo heartbeat >/sys/class/leds/*blue*/trigger 2>/dev/null - - # wait for armhwinfo - sleep 3 - read MACHINE /etc/hostname - sed -i -e "s/^::1 localhost.*/::1 localhost ${NEWHOSTNAME} ip6-localhost ip6-loopback/" \ - -e "s/^127.0.0.1 localhost.*/127.0.0.1 localhost ${NEWHOSTNAME}/" /etc/hosts + echo heartbeat >/sys/class/leds/*red*/trigger 2>/dev/null || echo heartbeat >/sys/class/leds/*blue*/trigger 2>/dev/null [ -f /etc/wicd/wired-settings.conf ] && \ sed -i "s/^dhcphostname =.*/dhcphostname = ${NEWHOSTNAME}/" /etc/wicd/wired-settings.conf && \ sed -i "s/wpa_driver =.*/wpa_driver = none/" /etc/wicd/manager-settings.conf @@ -261,9 +200,9 @@ main() { touch /tmp/firstrun_running /tmp/create_swap.sh & - #if [ "X${HARDWARE}" = "Xsun8i" -o "X${HARDWARE}" = "Xsun7i" ]; then - # autodetect_sunxi - #fi + if [ "X${HARDWARE}" = "Xsun8i" -o "X${HARDWARE}" = "Xsun7i" ]; then + autodetect_sunxi + fi # pine64 temp workaround if [ "$(awk '/Hardware/ {print $3}'