Jump to content

ddkDIZ

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

1095 profile views
  1. Most times when I search the forum ( using the top right search bar ) it comes up with ERROR 404 with this in the URL : http://forum.armbian.com/index.php?app=core&module=search&do=search&fromMainBar=1
  2. I had a similar issue with the LIME2 / A20-SOM ( on a custom PCB ) had to set the Ethernet interface down to 100mbps ( Our routing was wrong for a 1000mbps link to be working well ) We get better throughput with the device set to 100 than we did with 1000. this is in /etc/network/interfaces : allow-hotplug eth0 iface eth0 inet dhcp pre up mii-tool -F 100baseTx-FD eth0 This might not apply to you ( I think the timing settings for the banana Pi are set correctly )
  3. I followed the fex guide ( http://linux-sunxi.org/Fex_Guide) and 1-Wire link from ( http://linux-sunxi.org/Main_Page ) to add the modules I edited /etc/modules-load.d/modules.conf and added the modules (w1_sunxi , w1_gpio and w1_therm ) assuming you used the armbian lime2 image then /media/mmc/boot/bin/lime2.bin is the correct file to edit You need to convert the script.bin to a fex file and add the [w1_para] part , save and convert it the .fex back to a .bin. Note that the script.bin in the /boot/ directory is a symlink that points to one of the .bin files in /boot/bin/ use " ls -l /boot/ " to see which file it points to ( in my case it is /boot/bin/a20SOM.bin ) root@lime2:~# ls -l /boot/ lrwxrwxrwx 1 root root 20 Sep 20 15:28 script.bin -> /boot/bin/a20SOM.bin I could not find the bin2fex and fex2bin scripts on Armbian so I used the windows binary from here This is a convoluted way of doing the edit, there is probably a better way.. Use something like filezilla to : sftp to your armbian device and copy the correct .bin to your local machine, rename the file to script.bin convert it to a fex by running the bin2fex.bat from the same directory add the [w1_config] as you want it ( using a text editior ) save the .fex convert it to a .bin using fex2bin.bat rename it to the correct name for your A20 device, use sftp to copy it back to the /boot/bin directory in the Olimex image ( torrent form olimex) there were fex2bin and bin2fex utilities, but i could not find them in armbian )
  4. I am trying to set up a failover connection ( dialup with wvdial ) to use when eth0 doesnt have a connection, Linux a20-SSM 3.4.108-sunxi #14 SMP PREEMPT Tue Aug 25 18:13:23 CEST 2015 armv7l GNU/Linux I have set up my /etc/network/interfaces do run wvdial when eth0 goes down. This happens reliably when I send the command to take eth0 down ( ifdown eth0 ) but not when the cable is diconnected. /etc/network/interfaces allow-hotplug eth0 iface eth0 inet dhcp hwaddress ether 02:17:08:80:c1:98 post-down ifup ppp0 post-up ifdown ppp0 #PPP dialup connection auto ppp0 allow-hotplug ppp0 iface ppp0 inet wvdial pre-up /home/ssm/modemTurnon.sh up wvdial When the cable is disconnected ( or the router turns off /power failure ) i get this message in terminal , but the interface does not go down and ifconfig still reports that eth0 is up # <6>PHY: sunxi_gmac-0:01 - Link is Down<c> #ifconfig eth0 Link encap:Ethernet HWaddr 02:19:05:82:e3:f4 inet6 addr: fe80::19:5ff:fe82:e3f4/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:253 errors:0 dropped:0 overruns:0 frame:0 TX packets:9 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:50555 (49.3 KiB) TX bytes:706 (706.0 Interrupt:117 cat /sys/class/net/eth0/operstate returns unknown when I call it I think I might be confusing different layers of the networking interface here But I have no idea ho wto get the device to switch over to the wvdial ( ppp0 ) connection when the primary interface fails. does anyone have any suggestions or solutions to this ?
  5. No recompiling needed , just reading up on kernel modules ... I added w1_sunxi w1_gpio w1_therm to File: /etc/modules-load.d/modules.conf and rebooted the W1 interface showed up.: # ls /sys/bus/w1/devices/ 28-0000059a1220 w1_bus_master1 and to read the temperature ( 23.5 deg C ): # cat /sys/bus/w1/devices/28-0000059a1220/w1_slave 78 01 4b 46 1f ff 08 10 c1 : crc=c1 YES 78 01 4b 46 1f ff 08 10 c1 t=23500 note that you need a 4k7 ish pullup from data to 3V3 for the 1W bus to function properly some people sugguested using ~# modprobe w1-therm strong_pullup=1 But I have a pullup on the PCB so i did not need to do this -dd
  6. are the 1-wire modules built into legacy kernel ( 3.4.xx ) with debian jesse on an Olimex A20 LIME2 ( also the -SOM-4GB ) ? To use 1-Wire for DS18b20 temperature sensors on GPIO5 (from my fex file : gpio_pin_5 = port:PG04<0><default><default><default>) I added [w1_para] w1_used = 1 gpio = 5 to the aw_som_a20.fex file but I don't see any 1-wire modules or drivers loaded. I then used fex2bin ( in windows) to get the .bin file, copied it over and replaced the symlink from script.bin that was pointing to lime2.bin to point to my SSM_som.bin ( I changed the name of the edited one to my board name : SSM_som) Would I need to recompile the kernel to add these modules or can I add them to the current installation ? where are the bin2fex and fex2bin files stored on these images ( i used FTP to get them off, edit, put them back on ) -dd SSM_som_fex.txt
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines