Jump to content

chiefwigms

Members
  • Posts

    24
  • Joined

  • Last visited

Recent Profile Visitors

1384 profile views
  1. Got a chance to look at the docs - I see that only Allwinner DT has overlay support... wahh wahh You can close this
  2. I'm trying to upgrade from Armbian 5.32 (Xenial Next/4.4.76) and was hoping to enable 1 wire again on my Udoo. For that build, I had to add one wire modules to the kernel config, then edit the imx6qdl-udoo.dtsi to set the onewire status to okay (from disabled). In the dtsi, after udoo_ard: udoo_ard_manager it had: onewire@0 { /* example for pin 08 */ compatible = "w1-gpio"; pinctrl-names = "default"; pinctrl-0 = <&w1_gpio_pins>; status = "disabled"; /* "okay" to enable */ gpios = <&gpio1 21 0>; }; and in iomuxc, there was a section (in external_hog: hoggrp-2, MX6QDL_PAD_SD1_DAT3__GPIO1_IO21 0x80000000 // pin 08): w1_gpio_pins: w1-gpio@0 { fsl,pins = < MX6QDL_PAD_SD1_DAT3__GPIO1_IO21 0x80000000 /* example for pin 08 */ >; }; I tried adding the following to /boot/armbianEnv.txt overlays=w1-gpio param_w1_pin=21 param_w1_pin_int_pullup=0 with no luck. Do I need to modify the dtsi and rebuild, or is there an overlay that will add one wire? (the current dtsi has no entries for one wire)
  3. So after googling a bit - apparently there are build issues using /mnt vs ~ folders with WSL2 (~ is case sensitive, /mnt follows windows case-insensitive)... I was able to do a full compile out of ~ (not sure if you'd want to add WSL2 as a supported build environment).. Took 134 min on a i7-3610 (I think that was about the same in a VM a few years ago). Now to look at adding onewire again Only errors were on installing additional packages: [ .... ] Installing additional packages [ EXTERNAL_NEW ] Err:1 http://deb.debian.org/debian stable InRelease Could not connect to localhost:3142 (::1). - connect (111: Connection refused) Could not connect to localhost:3142 (127.0.0.1). - connect (111: Connection refused) Err:2 http://ports.ubuntu.com focal InRelease Could not connect to localhost:3142 (::1). - connect (111: Connection refused) Could not connect to localhost:3142 (127.0.0.1). - connect (111: Connection refused) Err:3 http://ports.ubuntu.com focal-security InRelease Unable to connect to localhost:3142: Err:4 http://ports.ubuntu.com focal-updates InRelease Unable to connect to localhost:3142: Err:5 http://ports.ubuntu.com focal-backports InRelease Unable to connect to localhost:3142: Err:6 http://apt.armbian.com focal InRelease Could not connect to localhost:3142 (::1). - connect (111: Connection refused) Could not connect to localhost:3142 (127.0.0.1). - connect (111: Connection refused) Err:7 http://deb.debian.org/debian stable-updates InRelease Unable to connect to localhost:3142: Err:8 http://deb.debian.org/debian-security stable/updates InRelease Unable to connect to localhost:3142: Reading package lists... W: Failed to fetch http://ports.ubuntu.com/dists/focal/InRelease Could not connect to localhost:3142 (::1). - connect (111: Connection refused) Could not connect to localhost:3142 (127.0.0.1). - connect (111: Connection refused) W: Failed to fetch http://ports.ubuntu.com/dists/focal-security/InRelease Unable to connect to localhost:3142: W: Failed to fetch http://ports.ubuntu.com/dists/focal-updates/InRelease Unable to connect to localhost:3142: W: Failed to fetch http://ports.ubuntu.com/dists/focal-backports/InRelease Unable to connect to localhost:3142: W: Failed to fetch http://apt.armbian.com/dists/focal/InRelease Could not connect to localhost:3142 (::1). - connect (111: Connection refused) Could not connect to localhost:3142 (127.0.0.1). - connect (111: Connection refused) W: Failed to fetch http://deb.debian.org/debian/dists/stable/InRelease Could not connect to localhost:3142 (::1). - connect (111: Connection refused) Could not connect to localhost:3142 (127.0.0.1). - connect (111: Connection refused) W: Failed to fetch http://deb.debian.org/debian/dists/stable-updates/InRelease Unable to connect to localhost:3142: W: Failed to fetch http://deb.debian.org/debian-security/dists/stable/updates/InRelease Unable to connect to localhost:3142: W: Some index files failed to download. They have been ignored, or old ones used instead. Reading package lists... Building dependency tree... Reading state information... mmc-utils is already the newest version (0+git20180327.b4fe0c8c-1). sunxi-tools is already the newest version (1.4.2+git20181114.6d598a-3). hostapd is already the newest version (3:2.9-102~armbian20.05.2+1). htop is already the newest version (2.2.0-3~armbian19.11.9+1). 0 upgraded, 0 newly installed, 0 to remove and 31 not upgraded. [ o.k. ] Calling image customization script [ customize-image.sh ]
  4. I'm on Windows 10 using WSL2 (Ubuntu 20.04) to build (running with sudo). I installed gpg & generated a public key (I chose DSA+RSA, 3072 Length, Never Expire), but get errors with verification: Probably not a supported build environment but I figured I'd see if there was a simple fix rather than spinning up another VM... Came back here because I randomly looked and saw that UDOO was no longer obsolete (THANKS!) CPU configuration: 392000 - 996000 with interactive Displaying message: Preparing host info Displaying message: Build host OS release focal info Displaying message: Syncing clock host info Displaying message: Checking for external GCC compilers info Displaying message: downloading using torrent network gcc-linaro-aarch64-none-elf-4.8-2013.11_linux.tar.xz gpg: keybox '/mnt/e/_Code/armbian/build/cache/.gpg/pubring.kbx' created gpg: /mnt/e/_Code/armbian/build/cache/.gpg/trustdb.gpg: trustdb created gpg: error reading key: No public key gpg: connecting dirmngr at '/mnt/e/_Code/armbian/build/cache/.gpg/S.dirmngr' failed: IPC connect call failed gpg: keyserver receive failed: No dirmngr gpg: error reading key: No public key gpg: connecting dirmngr at '/mnt/e/_Code/armbian/build/cache/.gpg/S.dirmngr' failed: IPC connect call failed gpg: keyserver receive failed: No dirmngr gpg: assuming signed data in '/mnt/e/_Code/armbian/build/cache/toolchains/gcc-linaro-aarch64-none-elf-4.8-2013.11_linux.tar.xz' gpg: Signature made Tue 19 Nov 2013 02:00:03 AM MST gpg: using RSA key D47877808F427EAF gpg: Can't check signature: No public key Displaying message: ERROR in function download_and_verify general.sh:1199 err Displaying message: verification failed err Displaying message: Process terminated info output.log torrent.log
  5. Yeah - didn't wanna have to rebuild Thanks for the commit though - i'm sure i'll be back in 5 months trying to rebuild a module
  6. If i run /lib/systemd/systemd-modules-load, i get: Failed to find module 'lp' Failed to find module 'ppdev' Failed to find module 'parport_pc' In cat /etc/modules-load.d/cups-filters.conf # Parallel printer driver modules loading for cups # LOAD_LP_MODULE was 'yes' in /etc/default/cups lp ppdev parport_pc Commenting out those three seemed to fix it. Don't believe I need CUPS
  7. Finally got around to messing with it... I compiled fine, but from the build and install log: dpkg-genchanges: warning: unknown substitution variable ${kernel:debarch} dpkg-genchanges: warning: package linux-libc-dev-next-udoo in control file but not in files list dpkg: dependency problems prevent configuration of armbian-config: armbian-config depends on sunxi-tools; however: Package sunxi-tools is not installed. dpkg: error processing package armbian-config (--install): dependency problems - leaving unconfigured Errors were encountered while processing: armbian-config dpkg-deb: building package 'armbian-firmware' in 'armbian-firmware_5.46_all.deb'. dpkg-deb: building package 'armbian-firmware-full' in 'armbian-firmware-full_5.46_all.deb'. (Reading database ... 99053 files and directories currently installed.) Preparing to unpack .../armbian-firmware_5.46_all.deb ... Unpacking armbian-firmware (5.46) over (5.45) ... Setting up armbian-firmware (5.46) ... Selecting previously unselected package armbian-tools-xenial. (Reading database ... 99053 files and directories currently installed.) Preparing to unpack .../armbian-tools-xenial_5.46_armhf.deb ... Unpacking armbian-tools-xenial (5.46) ... Setting up armbian-tools-xenial (5.46) ... Processing triggers for systemd (229-4ubuntu21.2) ... Processing triggers for ureadahead (0.100.0-19) ... After I flash the image, on subsequent boots, i get: [FAILED] Failed to start Load Kernel Modules. See 'systemctl status systemd-modules-load.service' for details. root@udoo:~# systemctl status systemd-modules-load.service ? systemd-modules-load.service - Load Kernel Modules Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static; vendor preset: enabled) Drop-In: /lib/systemd/system/systemd-modules-load.service.d +-10-timeout.conf Active: failed (Result: exit-code) since Sun 2018-06-10 01:15:40 UTC; 4min 9s ago Docs: man:systemd-modules-load.service(8) man:modules-load.d(5) Main PID: 297 (code=exited, status=1/FAILURE) Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable. Here's the output of armbianmonitor -u http://ix.io/1cS2 I guess its EOS though The last working image I have was w/ kernel 4.4.76.. anyway to specify that in the checkout/build just to build a kernel module ?
  8. Thanks! For whatever reason, my VM keeps dropping the connection and I can't finish the clone. Hopefully I'll get a build going tonight
  9. Its been a while since I built a UDOO image (need another kernel module), when I ran compile.sh, it pulled new source and told me to clone a new build directory. In the process of cloning, however with UDOO being EOS, is it still possible to build the legacy kernel/image with current sources?
  10. I'm running custom built images for (xenial-next), and ArduinoIDE 1.5.4 (the newer IDE would be easier to run if Udoo updated the board package json to have arm support). This may be old, but I needed the latest java jdk, a custom Arduino 1.5.4HFP from Udoo & a custom bossac for udoo (forget where I got it from, but its attached) To get it running, i did : #Get latest jdk (Linux ARM 32 Hard Float ABI) @ http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html mv jdk-8u131-linux-arm32-vfp-hflt.tar.gz /usr/lib/jvm/ cd /usr/lib/jvm/ tar xvf jdk-8u131-linux-arm32-vfp-hflt.tar.gz #Update Java update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0_131/bin/java" 1 update-alternatives --install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0_131/bin/javac" 1 update-alternatives --config java update-alternatives --config javac #symlink libmpc cd /usr/lib/arm-linux-gnueabihf ln -s libmpc.so.3 libmpc.so.2 #extract Arduino IDE 1.5.4 @ http://udoo.org/download/files/arduino-1.5.4-hfp-for_UDOO.tar.gz cd / tar xvf arduino-1.5.4-hfp-for_UDOO.tar.gz #Overwrite /arduino-1.5.4/hardware/tools/bossac with attached bossac-udoo bossac-udoo
  11. So I must be doing something wrong. Just did a pull on your repo - attached are my changes: compile.sh 16,17c16,17 < KERNEL_ONLY="" # leave empty to select each time, set to "yes" or "no" to skip dialog prompt < KERNEL_CONFIGURE="no" # change provided kernel configuration --- > KERNEL_ONLY="yes" # leave empty to select each time, set to "yes" or "no" to skip dialog prompt > KERNEL_CONFIGURE="yes" # change provided kernel configuration 27c27 < KERNEL_KEEP_CONFIG="no" # do not overwrite kernel config before compilation --- > KERNEL_KEEP_CONFIG="yes" # do not overwrite kernel config before compilation 31c31 < FORCE_CHECKOUT="yes" # ignore manual changes to source --- > FORCE_CHECKOUT="no" # ignore manual changes to source kernel config diffs (from your repo): 3c3 < # Linux/arm 4.4.6 Kernel Configuration --- > # Linux/arm 4.4.0 Kernel Configuration 2055c2055,2082 < # CONFIG_W1 is not set --- > CONFIG_W1=y > CONFIG_W1_CON=y > > # > # 1-wire Bus Masters > # > # CONFIG_W1_MASTER_DS2490 is not set > # CONFIG_W1_MASTER_DS2482 is not set > CONFIG_W1_MASTER_MXC=y > # CONFIG_W1_MASTER_DS1WM is not set > CONFIG_W1_MASTER_GPIO=y > > # > # 1-wire Slaves > # > CONFIG_W1_SLAVE_THERM=y > # CONFIG_W1_SLAVE_SMEM is not set > # CONFIG_W1_SLAVE_DS2408 is not set > # CONFIG_W1_SLAVE_DS2413 is not set > # CONFIG_W1_SLAVE_DS2406 is not set > # CONFIG_W1_SLAVE_DS2423 is not set > # CONFIG_W1_SLAVE_DS2431 is not set > # CONFIG_W1_SLAVE_DS2433 is not set > # CONFIG_W1_SLAVE_DS2760 is not set > # CONFIG_W1_SLAVE_DS2780 is not set > # CONFIG_W1_SLAVE_DS2781 is not set > # CONFIG_W1_SLAVE_DS28E04 is not set > # CONFIG_W1_SLAVE_BQ27000 is not set 4175a4203 > # CONFIG_DEBUG_UART_BCM63XX is not set git diff from sources/linux-udoo-next/4.4-5.0.11.p7.3 (this is the only change for the whole tree): diff --git a/arch/arm/boot/dts/imx6qdl-udoo.dtsi b/arch/arm/boot/dts/imx6qdl-udoo.dtsi old mode 100644 new mode 100755 index 502e741..7ad9abe --- a/arch/arm/boot/dts/imx6qdl-udoo.dtsi +++ b/arch/arm/boot/dts/imx6qdl-udoo.dtsi @@ -231,7 +231,7 @@ compatible = "w1-gpio"; pinctrl-names = "default"; pinctrl-0 = <&w1_gpio_pins>; - status = "disabled"; + status = "okay"; gpios = <&gpio1 21 0>; }; }; I run my compile.sh, and install all the generated debs: linux-firmware-image-4.4.0-udoo_5.26_armhf.deb linux-headers-4.4.0-udoo_5.26_armhf.deb linux-image-4.4.0-udoo_5.26_armhf.deb linux-libc-dev_5.26_armhf.deb linux-u-boot-next-udoo_5.26_armhf.deb via "dpkg -i *.deb" - so I assume that it will use your tools & install your kernel patches. After the install - goes straight to trying to boot off net
  12. Good uboot (prior to updating custom kernel): baudrate=115200 board_rev=MX6Q boot_a_script=ext2load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${prefix}${script} || fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${prefix}${script} boot_fdt=try boot_prefixes=/ /boot/ bootcmd=mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; fi; udooinit; if run loadimage; then run mmcboot; else run netboot; fi; else run netboot; fi bootdelay=3 bootscript=echo Running bootscript from mmc ...; source console=ttymxc1 ethact=FEC ethaddr=00:c0:08:88:10:2c ethprime=FEC fdt_addr=0x18000000 fdt_file=undefined fdt_high=0xffffffff image=zImage initrd_high=0xffffffff ip_dyn=yes loadaddr=0x12000000 loadbootscript=run scan_dev_for_boot; loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file} loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image} mmcargs=setenv bootargs console=${console},${baudrate} ${video} ${memory} root=${mmcroot} rootfstype=${mmcrootfstype} ahci_imx.hotplug=1 mmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi; mmcdev=0 mmcpart=1 mmcroot=/dev/mmcblk0p2 rootwait rw mmcrootfstype=ext4 netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${image}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi; scan_dev_for_boot=echo Scanning mmc ; for prefix in ${boot_prefixes}; do run scan_dev_for_scripts; done scan_dev_for_scripts=if test -e ${mmcdev}:${mmcpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; else echo Checking here ${prefix} ... not found; fi; script=boot.scr splashpos=m,m update_sd_firmware=if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; if mmc dev ${mmcdev}; then if ${get_cmd} ${update_sd_firmware_filename}; then setexpr fw_sz ${filesize} / 0x200; setexpr fw_sz ${fw_sz} + 1; mmc write ${loadaddr} 0x2 ${fw_sz}; fi; fi update_sd_firmware_filename=u-boot.imx Environment size: 2528/8188 bytes Bad uboot (after updating custom kernel): baudrate=115200 board_rev=MX6Q boot_fdt=try bootcmd=mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; fi; udooinit; if run loadimage; then run mmcboot; else run netboot; fi; else run netboot; fi bootdelay=3 bootscript=echo Running bootscript from mmc ...; env import -t ${loadaddr} ${filesize}; console=ttymxc1 ethact=FEC ethaddr=00:c0:08:88:10:2c ethprime=FEC fdt_addr=0x18000000 fdt_file=undefined fdt_high=0xffffffff image=zImage initrd_high=0xffffffff ip_dyn=yes loadaddr=0x12000000 loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script}; loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file} loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image} mmcargs=setenv bootargs console=${console},${baudrate} ${video} ${memory} root=${mmcroot} rootfstype=${mmcrootfstype} ahci_imx.hotplug=1 mmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi; mmcdev=0 mmcpart=1 mmcroot=/dev/mmcblk0p2 rootwait rw mmcrootfstype=ext4 netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${image}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi; script=uEnv.txt splashpos=m,m update_sd_firmware=if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; if mmc dev ${mmcdev}; then if ${get_cmd} ${update_sd_firmware_filename}; then setexpr fw_sz ${filesize} / 0x200; setexpr fw_sz ${fw_sz} + 1; mmc write ${loadaddr} 0x2 ${fw_sz}; fi; fi update_sd_firmware_filename=u-boot.imx Environment size: 2116/8188 bytes I did a diff and updated all the variables to match the good uboot, and the new kernel loaded, however I don't see one wire.. I'll mess around more today
×
×
  • Create New...