Jump to content

BaronVonChickenPants

Members
  • Posts

    16
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

767 profile views
  1. Thanks Igor, that worked as expected. Without knowing exactly what each of them does, I would have thought that if someone had modified compile.sh to activate KERNEL_CONFIG would have been enough and FORCE_CHECKOUT may be a little redundant. An option like FORCE_CHECKOUT that performed a fresh download of all files before you start, in case you had made a mass of them, would be useful, which is what I had assumed it did. Where does the compile.sh script expect to find "extra" items? How do I add additional items to this? Regards, Jordan
  2. I'm not sure if it is something I'm doing wrong or a bug in the build scripts but any changes to kernel options appear to be ignored at the final compile stage. I deployed a fresh build VM with Ubuntu Trusty, downloaded all of the build environment again as per http://www.armbian.com/github/ Changed the following compile.sh options: KERNEL_ONLY="yes" KERNEL_CONFIGURE="yes" KERNELTAG="v4.2" FBTFT="no" This then presents me with the make menu_config screen as expected where I can alter or load kernel .config's but the resulting kernel is always the same. Examples: Enabling DRBD modules Removing support for superfluous Allwinner SoC's A10s/A13/A31/sun8i/sun91 Removing Bluetooth, IrDA and WiMAX As a reference I was able to successfully build a kernel using the build environment and scripts from here: https://eewiki.net/display/linuxonarm/A10-OLinuXino-LIME The two environments/scripts seem very similar but I a looming deadline keeps me from reverse engineering them to see where it's falling apart. Curiously Allwinner NAND support was available in both kernel but neither would enable access to the Cubieboards 4Gb NAND Jordan.
  3. My cubieboards currently aren't configured anywhere close to standard so they may not be the best reference (custom 4.2.0 kernel) but I was able to connect a Seagate Desktop USB3.0 drive without issue. Have you considered running Debian with Igor's server script: http://forum.armbian.com/index.php/topic/4-debian-micro-home-server/? Jordan.
  4. A Cubieboard will be perfect for this as you can connect a sata hard drive for abusable storage, flash storage is not fond of the rapid random writes of torrenting. There should be no issues with CLI and the Vanilla kernel. The vanilla kernels short comings only effect desktop requirements: Bugs or limitation * No audio or IR driver, no HW accelerated video This will have no impact on a headless torrent server. Jordan.
  5. Thank again Igor, http://mirror.igorpecovnik.com/test/linux-image-next-sunxi_4.3_armhf.debinstalled effortlessly, dpkg -i, reboot, done. Regards, Jordan.
  6. Wonderful, works exactly as hoped. Thank you for you time and continued efforts. A couple of quick notes, maybe they were competency tests I did have to pull the deb package apart and install manually. Running dpkg -i "completed successfully" but didn't appear to do anything, no new files or folders in /boot or /lib/modules/ I'm guessing the link was supposed to be http://mirror.igorpecovnik.com/test/linux-firmware-image-next-sunxi_4.2_armhf.deb or I was just too quick, 4.3 is there now. Regards, Jordan.
  7. As far as I can tell the compile script is ignoring the .config module list and compiling only the bare essential modules.
  8. Progress update: Running the compile script to build a Cubieboard Armbian 4.3 image with wheezy and the 4.1.6 kernel using the debian kernel config looked like it was going to work, the usbnet and ax88179 drivers were available in the sources and to be selected as part of the build, but the resulting image did not include any support for usbnet devices and lsmod revealed only a minimal list of modules. Open to any suggestions. Regards, Jordan.
  9. Some things weren't adding up with the Debian netinstall, so I did more digging. I'm certain that the link that sent me to the netinstall said Debian Wheezy, so without seeing otherwise, I just assumed this would install Wheezy. Turns out it actually installs Debian 9 "Stretch" :~# /usr/bin/lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux testing (stretch) Release: testing Codename: stretch :~# cat /etc/*-release PRETTY_NAME="Debian GNU/Linux stretch/sid" NAME="Debian GNU/Linux" ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support/" BUG_REPORT_URL="https://bugs.debian.org/" :~# cat /proc/version Linux version 4.1.0-2-armmp (debian-kernel@lists.debian.org) (gcc version 4.9.3 (Debian 4.9.3-3) ) #1 SMP Debian 4.1.6-1 (2015-08-23) Digging into the installer revealed this initrd.gz taken from http://d-i.debian.org/daily-images/armhf/daily/netboot/ on 07-Sep-2015 and lzma compressed My current project requires wheezy, so it's back to the drawing board. Currently trying to build an Armbian 4.x image using the debian kernel config and a fresh git pull as well as tweak the debian netinstall to provide a Wheezy install. Thank you for your efforts with this and Armbian in general. Have a Cubieboard on us - donation confirmation number: 5LK26066KV490302G Regards, Jordan.
  10. The only clue i was able to find but not confirm was here: http://linux-sunxi.org/Toolchain#Linaro_toolchain "WARNING: Do not use the 4.8 gcc versions of the linaro toolchain to build legacy kernels (sunxi-3.4 etc.), those seem to have issues building the kernel. Use an earlier version instead. (TODO: Verify that this is still true today)." I only used the cc-arm-linux-gnueabihf toolchain provided by the package included with Ubuntu 14.04, testing with the 4.7 toolchain as suggested was next on my list but for now I need to move on with what is working. I have uploaded the /boot folder with kernel config here: https://www.dropbox.com/sh/23nqmq8wn0ua7je/AACQgz9-uFex8DDMCL7LtG7ca I'll leave this image for now in case you need anything else from it. Regards, Jordan.
  11. While I was playing with builds, configs and git repository's I set the cubieboard running with the debian netinstall image from here: https://github.com/ssvb/sunxi-bootsetup/releases/tag/20141215-sunxi-bootsetup-prototype Once debian was installed the system booted first time and the ax88179 just worked. I have no idea what the differences are but I'm happy to provide any details if you wish to cross examine. :~# uname -a Linux cubie 4.1.0-2-armmp #1 SMP Debian 4.1.6-1 (2015-08-23) armv7l GNU/Linux :~# lsusb Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 003: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 003: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub :~# lsmod Module Size Used by joydev 9000 0 evdev 10432 0 ax88179_178a 14826 0 usbnet 24797 1 ax88179_178a hid_generic 816 0 mii 3962 2 usbnet,ax88179_178a axp20x_regulator 3194 1 i2c_mv64xxx 7438 0 sun4i_ts 4098 0 sunxi_wdt 3531 0 sunxi_sid 2401 0 ohci_platform 4658 0 ohci_hcd 39040 1 ohci_platform ehci_platform 5206 0 ehci_hcd 64605 1 ehci_platform spi_sun4i 3926 0 leds_gpio 3180 0 cpufreq_dt 4984 0 autofs4 30560 2 ext4 502662 1 crc16 1154 1 ext4 mbcache 9210 1 ext4 jbd2 89061 1 ext4 ahci_sunxi 2915 0 libahci_platform 6145 1 ahci_sunxi libahci 23210 2 libahci_platform,ahci_sunxi libata 181727 3 libahci,libahci_platform,ahci_sunxi scsi_mod 181219 1 libata phy_sun4i_usb 4208 8 sunxi_mmc 11177 0 sun4i_emac 10381 0 :~# modinfo ax88179_178a filename: /lib/modules/4.1.0-2-armmp/kernel/drivers/net/usb/ax88179_178a.ko license: GPL description: ASIX AX88179/178A based USB 3.0/2.0 Gigabit Ethernet Devices alias: usb:v17EFp304Bd*dc*dsc*dp*ic*isc*ip*in* alias: usb:v04E8pA100d*dc*dsc*dp*ic*isc*ip*in* alias: usb:v0DF6p0072d*dc*dsc*dp*ic*isc*ip*in* alias: usb:v2001p4A00d*dc*dsc*dp*ic*isc*ip*in* alias: usb:v0B95p178Ad*dc*dsc*dp*ic*isc*ip*in* alias: usb:v0B95p1790d*dc*dsc*dp*ic*isc*ip*in* depends: usbnet,mii intree: Y vermagic: 4.1.0-2-armmp SMP mod_unload modversions ARMv7 p2v8 Thank you for your time and assistance. Regards, Jordan.
  12. Further examination reveals the following: Each boot starts with: *** Warning - bad CRC, using default environment The Linux Sunxi wiki says: "If your 3.4.x kernel refuses to boot / gets stuck right after "Starting kernel ...": Double-check that bootm_boot_mode is set to "sec"!" http://linux-sunxi.org/Mainline_U-boot#Legacy_kernel_won.27t_start I tried adding setenv bootm_boot_mode sec and env set bootm_boot_mode sec to boot.cmd recompiling to boot.scr But there was still no progress Regards, Jordan
  13. Ok i've made a little progress. The new image performed the same as all previous 3.4.x images. Upon inspection of the /boot folder I found the symlinks for zImage and script.bin were not valid. I have copied the /boot/bin/cubieboard.bin to /boot/script.bin which got past not finding script.bin but the system still froze at Starting kernel... I also tried a symlink from within /boot to bin/lime-a10.bin and converting a fresh script.bin from your link above. The outcome was the same, please see image attached. I have tried copying vmlinuz-3.4.108-sunxi to zImage and recreating the symlink locally as below: root@ArmbianDev2:/media# ls -lha cdrom/boot/ total 7.4M drwxr-xr-x 3 root root 4.0K Sep 8 20:25 . drwxr-xr-x 22 root root 4.0K Sep 8 07:07 .. drwxr-xr-x 2 root root 4.0K Sep 8 07:05 bin -rw-r--r-- 1 root root 6.8K Sep 8 07:04 boot.bmp -rw-r--r-- 1 root root 1.8K Sep 8 07:06 boot.cmd -rw-r--r-- 1 root root 1.8K Sep 8 07:06 boot.scr -rw-r--r-- 1 root root 96K Sep 8 04:20 config-3.4.108-sunxi lrwxrwxrwx 1 root root 16 Sep 8 20:24 script.bin -> bin/lime-a10.bin -rw-r--r-- 1 root root 2.0M Sep 8 04:20 System.map-3.4.108-sunxi -rwxr-xr-x 1 root root 5.4M Sep 8 04:20 vmlinuz-3.4.108-sunxi lrwxrwxrwx 1 root root 21 Sep 8 20:25 zImage -> vmlinuz-3.4.108-sunxi Re: localisation: - when localisation is set to Australia the compile script does not present a menu to select board type, the first menu presented is distribution, then kernel version, after which the script falls apart because the variable for board type is not set. Regards, Jordan.
  14. That's good news, now if I could only get a 3.4 kernel to boot. No matter what method I use, build from scratch, downgrade a fresh 4.2 image with upgrade script, the system runs through initial diagnostics, fails to find /boot/.next and /boot/script.bin, then freezes on: Starting Kernel...... The attached photo is of a fresh 4.2 SD card image downgraded using the upgrader script. The results are identical for the image built using the build environment. I have enabled kernel options in the compile.sh and found that the kernel config for Cubieboard 1's is set to build for the A20 CPU not the A10. I have changed this back to A10 and running a fresh build. I have also confirmed that the default settings for the 3.4 kernel include the drivers for the ax88179. I'll report back in the morning on build outcome, I'm open to any suggestions anyone can offer in the meantime. Thanks, Jordan. PS: As noted elsewhere in the forum, when installing Ubuntu for your build environment, do not change any localisation settings, leave all settings on the US based defaults or the SDK scripts do not run correctly.
  15. Thanks Igor, I have tried compiling the kernel module on the cubieboard amrbian image but received the following errors, I believe the drivers provided by Asix are not intended for the 4.x kernel, hence the below errors. make -C /lib/modules/4.1.6-sunxi/build SUBDIRS=/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE modules make[1]: Entering directory `/usr/src/linux-headers-4.1.6-sunxi' Building modules, stage 2. MODPOST 1 modules WARNING: "usbnet_disconnect" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! WARNING: "usbnet_probe" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! WARNING: "usbnet_set_msglevel" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! WARNING: "usbnet_get_msglevel" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! WARNING: "usbnet_tx_timeout" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! WARNING: "usbnet_start_xmit" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! WARNING: "usbnet_stop" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! WARNING: "usbnet_open" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! WARNING: "usbnet_get_endpoints" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! WARNING: "usbnet_defer_kevent" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! WARNING: "usbnet_suspend" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! WARNING: "usbnet_resume" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! WARNING: "usbnet_write_cmd_nopm" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! WARNING: "usbnet_write_cmd" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! WARNING: "usbnet_read_cmd_nopm" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! WARNING: "usbnet_read_cmd" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! WARNING: "usbnet_get_drvinfo" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! WARNING: "usbnet_skb_return" [/root/AX88179_178A_LINUX_DRIVER_v1.14.2_SOURCE/ax88179_178a.ko] undefined! make[1]: Leaving directory `/usr/src/linux-headers-4.1.6-sunxi' I am currently building a new image with the 3.x kernel to try. Do you have any pointers on how to add the Asix driver source during build time? I noticed there was an option to add external drivers in the compile.sh but was not clear on where to add them. I have been watching the premoboards but they didn't make it to market in time for my current projects deadline. Thanks again, Jordan.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines