Jump to content


  • Posts

  • Joined

  • Last visited

Contact Methods

  • Matrix
  • Github
  1. Attached is a git diff, which includes 2 patches: rs485-8250_dw.patch - manually merged for 5.13.3 [PATCH] tty: 8250_of: Use software emulated RS485 direction control @ 2019-09-13 5:01 Heiko Schocher As you can see it's for the current/latest armbian kernel version 5.13.3 . I haven't re-applied the patch to see if patching works but with these changes RS485 works great for me on my NanoPI Neo. I don't use any additional ENV-vars for booting, but this DTS:: /dts-v1/; /plugin/; / { compatible = "allwinner,sun8i-h3"; fragment@0 { target = <&uart2>; __overlay__ { pinctrl-names = "default"; pinctrl-0 = <&uart2_pins>; linux,rs485-enabled-at-boot-time; rs485-rts-active-low; //rs485-rx-during-tx; rts-gpios = <&pio 0 2 1>; status = "okay"; }; }; }; This took me 3 days but I wouldn't get it running without this forum. Thanks Armbian Team! rs485-8250_dw-8250_of.patch
  2. I simply copied the uboot stuff from an existing image: # dd if=mmcblk0_new of=/dev/mmcblk0 bs=1024 skip=8 seek=8 count=$((1024-8)) I got the numbers from http://linux-sunxi.org/Bootable_SD_card : 1 block = 1024 bytes (-> bs=1024) first 8 blocks is MBR + partition-table (-> skip=8 seek=8) first partition starts at 1024 blocks (-> count=$((1024-8)))
  3. Hi there, I got some NanoPi-NEO running and need to update the kernel, modules and dtb's. With 4.18 the Ethernet does not seem to get started correctly. I noticed a change in u-boot and the newer Armbian releases have Ethernet-Support in u-boot. So my basic idea is to not just copy the kernel files but also update u-boot via dd command. I suppose there are at least 3 regions in the image: 1. the partition table which I don't want to change. 2. the u-boot configuration which I'd like to keep. 3. the u-boot runtime. So for #2 and #3 I'll need an image file. I'm trying to set-up a build environment for Armbian but what I'm probably missing is the offset and count parameters for dd. Is there some kind of "HowTo update u-boot for H3" somewhere? Thanks for your help.
  4. Hi there, I was wondering how to get the audio running on the NanoPI NEO. It has line-out PINs and I read the H3 has SPDIF which should be the correct output. So I found this post: https://forum.armbian.com/index.php/topic/1891-spdif-output-on-nanopi-m1/and changed my fex . Anyway, that seems to be for the older kernel. What exactly do I need for version 4+? I am using Gentoo and the sources from https://github.com/megous/linux . The modules seem to be different and that's what I got right now: sun4i_i2s 6408 0 sun4i_codec 12657 0 sun4i_spdif 5087 0 snd_soc_core 132869 3 sun4i_codec,sun4i_i2s,sun4i_spdif snd_pcm_dmaengine 4522 1 snd_soc_core snd_pcm 84734 3 sun4i_i2s,snd_pcm_dmaengine,snd_soc_core snd_timer 21349 1 snd_pcm snd 53569 3 snd_timer,snd_soc_core,snd_pcm soundcore 1112 1 snd However, I got no devices listed in /proc/asound . Thanks a lot for your efforts.
  5. Thanks. It's been the firmware. Funny since I tried the one from NanoPI's image "DietPi_NanoPiNEO-armv7-(Jessie)"
  6. Did anyone tried the NanoPi Neo Air already? I wrote a DTS and am able to boot. (chttps://github.com/erazor83/linux/commit/d09e783c8b28b0eb465cb3d6efe001c8a19b1ffc ) EMMC seems to work but I got no wireless interface. dmesg gives me: [ 1.784171] Key type encrypted registered [ 1.787030] sunxi-mmc 1c11000.mmc: smc 2 err, cmd 8, RTO !! [ 1.791131] sunxi-mmc 1c11000.mmc: smc 2 err, cmd 55, RTO !! [ 1.791959] sunxi-mmc 1c11000.mmc: smc 2 err, cmd 55, RTO !! [ 1.792783] sunxi-mmc 1c11000.mmc: smc 2 err, cmd 55, RTO !! [ 1.793615] sunxi-mmc 1c11000.mmc: smc 2 err, cmd 55, RTO !! [ 1.893988] mmc1: new high speed SDIO card at address 0001 [ 2.043016] mmc2: new DDR MMC card at address 0001 [ 2.048893] mmcblk2: mmc2:0001 8WPD3R 7.28 GiB [ 2.053984] mmcblk2boot0: mmc2:0001 8WPD3R partition 1 4.00 MiB [ 2.060469] mmcblk2boot1: mmc2:0001 8WPD3R partition 2 4.00 MiB [ 18.315477] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50 [ 19.330087] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50 [ 20.338826] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50 sunxi-mmc 1c11000.mmc is for mmc2, which is the emmc - so it hasn't to do anything with the wifi. I'm wondering about the htclk messages. Does anyone have some ideas about this?
  7. Hi there. Did anyone tried to get a recent kernel running under NanoPi M2? I got one board some days ago and would like to get a kernel running with DTS support. Thanks for any hints.
  8. I got it running. Seems like the symlink to /boot/dtb wasn't correct and the kernel was still using the old dtb.
  9. Hi there. I'm trying the same with bananapi_pro right now. So, toolchain isn't working for me since I'm running Gentoo. But anyway. I downloaded the armbian Jessie desktop image and put it on my SD. It boots and shows content on HDMI. Then I've downloaded u-boot and changed sun7i-a20-bananapro.dts . # make Bananapro_defconfig && make clean all I updated u-boot via: # dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8 So that probably seemed to work since u-boots tells me the correct build date on startup. For the kernel, I've downloaded https://github.com/megous/linuxand copied the config from /boot . I also added the pwm stuff in the coresponding dts. So, copied modules to /lib , kernel and dts to /boot and also made the links in /boot . The kernel starts fine but still a dark display while not having the HDMI connected. On reset the display seems to flash for a short time but I've no idea if this hasn't be the case before. Do you have anything in /sysfs or dmesg which relates to PWM or backlight? Regards, Alex
  10. The manual states there is only one PWM so, any idea how a PWM1 is supposed to work? I tried to add pin stuff on the DTS and changed some lines in pwm-sun4i.c without success. I was able to export pwm1 and change duty and so on but it didn't change the LED. However exporting the GPIO and writing the value changed the LED state.
  • Create New...