luca219

Members
  • Content Count

    32
  • Joined

  • Last visited

  1. hi all, sorry for the trivial question. in cubietruck plus board can I use the images for cubietruck 3? thank you
  2. i found this module http://www.asix.com.tw/download.php?sub=driverdetail&PItemID=131 but make -C /lib/modules/3.4.104-sunxi/build SUBDIRS=/root/AX88179_178A_LINUX_DRIVER_v1.14.4_SOURCE modules make: Entering directory `/usr/include' make: *** No rule to make target `modules'. Stop. make: Leaving directory `/usr/include'
  3. thanks, now i can't upgrade the kernel you know a card compatibile with old kernel? regards
  4. hi all, i need add extra ethernet card for my cubietruck A20 I have lindy based on Manufacturer: ASIX Elec. Corp I have read this topic but i did not understand all. in my cubie when attach the card in dmesg have : [ 722.103004] usb 4-1: new high-speed USB device number 6 using sw-ehci [ 782.958675] ehci_irq: port change detect lsusb Bus 004 Device 007: ID 0b95:1790 ASIX Electronics Corp. in another pc with when attach the card [21892.375550] usb 3-1.2: New USB device found, idVendor=0b95, idProduct=1790 [21892.375557] usb 3-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [21892.375560] usb 3-1.2: Product: AX88179 [21892.375563] usb 3-1.2: Manufacturer: ASIX Elec. Corp. [21892.375566] usb 3-1.2: SerialNumber: 000050B616192E [21892.718677] ax88179_178a 3-1.2:1.0 eth1: register 'ax88179_178a' at usb-0000:00:1a.0-1.2, ASIX AX88179 USB 3.0 Gigabit Ethernet, 00:50:b6:16:19:2e [21893.082286] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready [21895.537107] ax88179_178a 3-1.2:1.0 eth1: ax88179 - Link status is: 1 [21895.549066] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready is possible enable module in kernel 3.4.104-sunxi? how can i do? regards
  5. yes, i use old version!! now I understand why it does not work! I could update only the files in the boot [/dev/nand1/] , and maintain all file in sda1, It might work? thanks
  6. find this solution, for those who have problems with the script. Best way for install cubietruck on hard disk is this script if this if this does not work this could help. Install system in Nand with script present , in my case ,old version, is in /root/nand-install.sh remove SD Card and reboot with the hard disk connected. # fdisk /dev/sda Use “p†(print partition of a drive), “d†delete a partition or “n†(create new partition). The partition should be of type “83â€. Format the partition for rootfs with EXT4 filesystem: # mkfs.ext4 /dev/sda1 sudo su - root # rsync -aAXv /dev/nand2 /dev/sda1 changing boot parameters # sudo su - root # mount /dev/nand1 /mnt # nano /mnt/uEnv.txt Change the contents of uEnv.txt from “nand_root=/dev/nand2†to “nand_root=/dev/sda1 # umount /mnt # sync # reboot
  7. hi, the code to detect the battery load is the work of Igor (present in forum), I have only adapted to the mikestp27 request. if Igor suggests using the updated one is undoubtedly the most delicious way. I use old Kernel , I can't test the operation of the new, for the moment.
  8. hi , one solution is this: schedule this script every 5,10 minutes if you want mail alert need install heirloom mailx touch /root/battery_check.sh chmod +x /root/battery_check.sh crontab -e */10 * * * * /root/battery_check.sh prerequisite for mail alert apt-get install heirloom-mailx paste this in /root/check_battery.sh #!/bin/bash ###################################################################################### # SET MAIL NOTIFICATION mail_from=mail@domain.it smtp_server=smtp.server.it smtp_port=587 auth_username=mail@domain.it auth_passw=12345678 mail_to=mail2@domain.it ###################################################################################### # # Battery info # /usr/sbin/i2cset -y -f 0 0x34 0x82 0xC3 # read power OPERATING MODE register @01h POWER_OP_MODE=$(/usr/sbin/i2cget -y -f 0 0x34 0x01) BAT_EXIST=$(($(($POWER_OP_MODE&0x20))/32)) # divide by 32 is like shifting rigth 5 times CHARG_IND=$(($(($POWER_OP_MODE&0x40))/64)) # divide by 64 is like shifting rigth 6 times ######################################################################################## #read battery voltage 79h, 78h 0 mV -> 000h, 1.1 mV/bit FFFh -> 4.5045 V BAT_VOLT_LSB=$(/usr/sbin/i2cget -y -f 0 0x34 0x79) BAT_VOLT_MSB=$(/usr/sbin/i2cget -y -f 0 0x34 0x78) BAT_BIN=$(( $(($BAT_VOLT_MSB << 4)) | $(($(($BAT_VOLT_LSB & 0xF0)) >> 4)) )) BAT_VOLT=$(echo "($BAT_BIN*1.1)"|bc) # store maximum battery voltage to compare to if [ -f "/etc/default/battery" ]; then source "/etc/default/battery" else echo "MAX=$BAT_VOLT" > /etc/default/battery echo "MIN=3484" >> /etc/default/battery fi # integer is enough, cut down the decimals MAX=${MAX%.*} BAT_VOLT=${BAT_VOLT%.*} # mainline kernel shows battery existence even if not exists. this is walkaround if [ "$BAT_VOLT" -ge "3200" ]; then # if we have new max value, alter defaults if [ "$BAT_VOLT" -gt "$MAX" ]; then MAX=$BAT_VOLT sed -e 's/MAX=.*/MAX='$BAT_VOLT'/g' -i /etc/default/battery fi # if we have new min value, alter defaults if [ "$BAT_VOLT" -lt "$MIN" ]; then MIN=$BAT_VOLT sed -e 's/MIN=.*/MIN='$BAT_VOLT'/g' -i /etc/default/battery fi # calculate percentage percent=$(echo "($BAT_VOLT-$MIN)*100/($MAX-$MIN)"|bc) fi # define output format output="Load : $percent%" if [ "$percent" -gt 20 ]; then #echo $percent exit fi # if we have new min value, alter defaults if [ "$percent" -lt 20 ]; then #echo $percent # Alert shutdown mail mailx -v -r "$mail_from" -s "Cubietruck shutdown" -S smtp="$smtp_server:$smtp_port" -S smtp-use-starttls -S smtp-auth=login -S smtp-auth-user="$auth_username" -S smtp-auth-password=$auth_passw -S ssl-verify=ignore $mail_to poweroff fi
  9. I correct myself. file system read only in boot [FAIL] startpar:service(s) returned failure: checkroot-bootclean.sh .. failed! [FAIL] Setting sysfs variables.. unknow attribute
  10. hi , use old version of cubietruck Linux cubie 3.4.104-sunxi #1 SMP PREEMPT Fri Oct 17 16:13:30 CEST 2014 armv7l GNU/Linux Debian GNU/Linux 7 \n \l If use latest script for me no work, but if follow this step work fine. Boot cubietruck with sdcard. Install system in nand with /root/nand-install.sh mount /dev/nand1 /mnt/nand1 mount /dev/nand2 /mnt/nand2 mount /dev/sda1 /mnt/sda1 ( for new sda fdisk /dev/sda opz n ,1, p,w after mkfs.ext4 /dev/sda1) rsync -aAXv --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} / /mnt/sda1 nano /mnt/sda1/etc/fstab change /dev/mmcblk0p1 / ext4 defaults,noatime,nodiratime,data=writeback,commit=600,errors=remount-ro 0 0 to /dev/sda1 / ext4 defaults,noatime,nodiratime,data=writeback,commit=600,errors=remount-ro 0 1 change in /mnt/nand1/uEnv.txt nand_root=/dev/nand2 rootwait to nand_root=/dev/sda1 rootwait reboot , remove sdcard and work fine df -h Filesystem Size Used Avail Use% Mounted on rootfs 117G 3,1G 108G 3% / /dev/root 117G 3,1G 108G 3% / devtmpfs 1000M 0 1000M 0% /dev tmpfs 128M 296K 128M 1% /run tmpfs 5,0M 0 5,0M 0% /run/lock tmpfs 128M 0 128M 0% /run/shm tmpfs 1,0G 0 1,0G 0% /tmp /dev/root 117G 3,1G 108G 3% /var/log.hdd ramlog-tmpfs 512M 36M 477M 7% /var/log any suggestion? the script is more simple regards
  11. intresting request. it's possible As soon as I have free time I try
  12. hi, thanks for your replay. If use old script nand-install.sh work fine. Probably if mount manually sda, copy with rsync file and set fstab sysfs.conf work. I have a doubt: there are difference for package old nand1-cubietruck-debian-boot.tgz present in old version and package present in new script?
  13. nand-part present ln: failed to create symbolic link `/usr/bin/nand-part': File exists format nand with linaro, run script install again, all done result: no boot from nand. I have restart cubietruck with sdcard mount /dev/nand1 /mnt/nand1 /dev/nand1 on /mnt/nand1 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro) ls /mnt/nand1/ boot.axf boot.ini linux uEnv.txt uImage mount /dev/nand2 /mnt/nand2 /dev/nand2 on /mnt/nand2 type ext4 (rw,relatime) ls -la /mnt/nand2/ total 24 drwxr-xr-x 3 root root 4096 mar 11 17:13 . drwxr-xr-x 7 root root 4096 mar 12 12:59 .. drwx------ 2 root root 16384 mar 11 17:13 lost+found
  14. i have flash nand with lubuntu. run nand-sata-install and select boot on nand and system on sata all done, but no boot. All frontal led are off. exists wiki for manual process? regards