April 08, 2020, 10:20:51 am

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - blades

1
complete instructions please? Iam newbe and don't know what to do with .zip file ::)
thank you :D
2
where do you connect the ds1307 pins to Cubirboard gpio;
3
my mistake, ds module for Raspberry is 1302 not 1307
4
there is a rtc module for raspberry pi,ds1307 ds1302 and AbioTime and i think it could work to cubieboard. any way i will try it today and will post results etc
6
in dmesg are no errors about nand


well yes, booted from sd-card and done
mkfs.ext4 /dev/nandb

then without sd-card in Cubieboard
Hit any key to stop autoboot:  0
sun4i#ext4ls nand 1:0
<DIR>       4096 .
<DIR>       4096 ..
<DIR>      16384 lost+found


then with the sd-card on Cubieboard
/dev/nanda: SEC_TYPE="msdos" UUID="2FAB-F97C" TYPE="vfat"
/dev/nandb: UUID="b37ca912-6195-42b7-a8ee-45448d590fbb" TYPE="ext4"
/dev/mmcblk0p1: SEC_TYPE="msdos" UUID="52DE-A891" TYPE="vfat"
/dev/mmcblk0p2: LABEL="root" UUID="139c1c9e-0f67-484c-95f4-27103e7b7535" TYPE="ext4"


yet I haven't tried to install the Debian in NAND but will give it a go as it seems now NAND is healed,
patwood thank you very much for support

7
I just ordered the NAND semiconductor for 8 euros, free shipping and arrives at 1-2 months. I hope to replace the broken one at my Cubieboard, any knowledge how-to replace will be useful
Samsung  K9GBG08U0A-SCB0

if anyone interested in numbers description here is a datasheet
http://www.elnec.com/device/Samsung/K9GBG08U0A+%5BTSOP48%5D+%28AML-02%29/
8
ok, thank you for helping me out anyway.
9
here they are,
sun4i#ext4ls nand 1:0
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
sun4i#ext4ls nand 1:0 boot
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **


whith sd-card in Cubieboard>
root@debian:~# blkid
/dev/nanda: SEC_TYPE="msdos" UUID="2FAB-F97C" TYPE="vfat"
/dev/mmcblk0p1: SEC_TYPE="msdos" UUID="52DE-A891" TYPE="vfat"
/dev/mmcblk0p2: LABEL="root" UUID="139c1c9e-0f67-484c-95f4-27103e7b7535" TYPE="ext4"


root@debian:~# fsck -f /dev/mmcblk0p2
fsck from util-linux 2.20.1
e2fsck 1.42.5 (29-Jul-2012)
/dev/mmcblk0p2 is mounted.
e2fsck: Cannot continue, aborting.


thanx for helping me out patwood
10
ext4load and ext4ls commands are listed ok,

print
sun4i#print
baudrate=115200
boot_nand=ext4load nand 1:0 0x48000000 /boot${kernel} && bootm 0x48000000
bootcmd=if run loadbootenv; then echo Loaded environment from ${bootenv};env import -t ${scriptaddr} ${filesize};fi;if test -n ${uenvcmd}; then echo Running uenvcmd ...;run uenvcmd;fi;if run loadbootscr; then echo Jumping to ${bootscr};source ${scriptaddr};fi;run setargs boot_nand;
bootdelay=3
bootenv=/uEnv.txt
bootscr=/boot.scr
console=ttyS0,115200
ethact=wemac
kernel=/uImage
loadbootenv=ext4load nand 1:0 $scriptaddr /boot${bootenv} || fatload nand 0:0 $scriptaddr ${bootenv}
loadbootscr=ext4load nand 1:0 $scriptaddr /boot${bootscr} || fatload nand 0:0 $scriptaddr ${bootscr}
loglevel=8
panicarg=panic=10
root=/dev/nandb rootwait
scriptaddr=0x44000000
setargs=setenv bootargs console=${console} root=${root} loglevel=${loglevel} ${panicarg} ${extraargs}
stderr=serial
stdin=serial
stdout=serial

Environment size: 930/131068 bytes


11
Hi everybody, here is a problem which needs your help, in Cubieboard v.1 I installed Debian to NAND memory (the manual way) and everything worked ok until today it can't boot, I connect TTL to see kernel messages and here they are
Succeed in loading Boot1.
Jump to Boot1.
[       0.133] boot1 version : 1.4.0
[       0.133] pmu type = 3
[       0.134] bat vol = 0
[       0.161] axi:ahb:apb=3:2:2
[       0.161] set dcdc2=1400, clock=1008 successed
[       0.163] key
[       0.175] no key found
[       0.175] flash init start
[       4.465] flash init finish
[       4.465] fs init ok
[       4.466] fattype FAT12
[       4.467] fs mount ok
[       4.474] script finish
[       4.475] power finish
[       4.482] BootMain start
[       4.482] 0
[       4.515] key value = 0
[       4.515] recovery key high 6, low 4
[       4.516] unable to find fastboot_key key_max value
[       4.523] test for multi os boot with display
[       4.526] logo name is invalid or dont need show logo
[       4.531] load kernel start
[       4.558] load kernel successed
[       4.558] start address = 0x4a000000
[       4.560] jump to


U-Boot 2013.01-05530-g8843079-dirty (Feb 04 2013 - 02:41:41) Allwinner Technology

Board: Cubieboard
I2C:   ready
DRAM:  1 GiB
NAND:  0 MiB
MMC:   SUNXI SD/MMC: 0
MMC init failed
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   wemac
Hit any key to stop autoboot:  0
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
reading /uEnv.txt
** Unable to read file /uEnv.txt **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
reading /boot.scr
** Unable to read file /boot.scr **
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
sun4i#


at last lines it says problem with filesystem

anyone knows a way to fix it back? and please keep it in simple words as Iam almost noob here,

thank you in advance
12
Quote from: Vasudevan on June 23, 2013, 01:49:29 pm
Quote from: alexd on April 18, 2013, 10:06:36 am
Hi lawrence,

Could you please tell me how can I tell to cubie that its GPIO is 1wire?

Thank you.


If u want to do things with GPIO, you have to modify script.bin. If you want the steps, just mail me. I will post it in the forum or if u need i will mail it to you.
Vasu
Iam interested in connecting ds18b20  temperature sensor with Cubieboard GPIO
13
Quote from: patwood on February 04, 2013, 12:55:12 am
After mount /dev/nandb, just do a

cp -r {everything but /dev /proc /mnt and /sys} /mnt

to copy the current linux system on SD over to nand, where {everything but /dev /proc /mnt and /sys} should be replaced by everything in / but those directories (do "ls /" to see what "everything" is).

Update: you should create empty directories for /dev, /proc, /mnt, and /sys so the kernel can mount to them when it starts up. 

Personally, I prefer to use rsync, which lets me specify an exclude file with --exclude-from=FILE.  Here's what I put in mine:

/dev/*
/proc/*
/sys/*
/media/*
/mnt/*
/run/*
/tmp/*


This creates the top-level directories, but doesn't copy over the contents.
nice instructions, I managed to write to NAND
14
ppp is already installed
root@mele:/usr/bin# apt-get install ppp
Reading package lists... Done
Building dependency tree       
Reading state information... Done
ppp is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.


sakis3g script is to dial out but the command that works with Raspbian
sakis3g connect USBINTERFACE=0 APN=myq

don't work here

the procedure is certain to debian and debian like systems
apt-get install ppp
apt-get install libusb-dev
cd /usr/bin
wget "http://dl.dropbox.com/u/27430037/sakis3g"
chmod a+x sakis3g
sakis3g recompile
sakis3g connect USBINTERFACE=0 APN=myq

with the above lines I connect to internet via 3G, I have done it many times.

Ubuntu 12.10 Cubieboard resists to connect to internet
15
Quote from: ryba84 on July 12, 2013, 02:38:52 am
There is no usb_serial in standard kernel config. Small amount of info we have about Your system. Show Youruname -a
dmesg | grep USB
.

I use the Ubuntu 12.10 image in NAND
blades@mele:~$ uname -a
Linux mele 3.0.42 #4 PREEMPT Thu Apr 4 02:38:16 CEST 2013 armv7l armv7l armv7l GNU/Linux


blades@mele:~$ dmesg | grep USB
[    0.050000] [usb_manager]: CONFIG_USB_SW_SUN4I_USB0_OTG
[    0.920000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.920000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.960000] [sw-ehci1]: Set USB Power ON
[    0.960000] sw-ehci sw-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.970000] sw-ehci sw-ehci.1: new USB bus registered, assigned bus number 1
[    1.000000] sw-ehci sw-ehci.1: USB 0.0 started, EHCI 1.00
[    1.000000] hub 1-0:1.0: USB hub found
[    1.040000] sw-ohci sw-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    1.050000] sw-ohci sw-ohci.1: new USB bus registered, assigned bus number 2
[    1.120000] hub 2-0:1.0: USB hub found
[    1.160000] [sw-ehci2]: Set USB Power ON
[    1.160000] sw-ehci sw-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.170000] sw-ehci sw-ehci.2: new USB bus registered, assigned bus number 3
[    1.200000] sw-ehci sw-ehci.2: USB 0.0 started, EHCI 1.00
[    1.200000] hub 3-0:1.0: USB hub found
[    1.230000] usb usb3: USB disconnect, device number 1
[    1.230000] sw-ehci sw-ehci.2: USB bus 3 deregistered
[    1.240000] [sw-ehci2]: Set USB Power OFF
[    1.280000] [sw-ohci2]: Set USB Power ON
[    1.280000] sw-ohci sw-ohci.2: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    1.290000] sw-ohci sw-ohci.2: new USB bus registered, assigned bus number 3
[    1.360000] hub 3-0:1.0: USB hub found
[    1.380000] usb usb3: USB disconnect, device number 1
[    1.390000] sw-ohci sw-ohci.2: USB bus 3 deregistered
[    1.390000] [sw-ohci2]: Set USB Power OFF
[    1.400000] Initializing USB Mass Storage driver...
[    1.410000] USB Mass Storage support registered.
[    1.880000] usbhid: USB HID core driver
[    3.660000] [sw-ehci2]: Set USB Power ON
[    3.660000] sw-ehci sw-ehci.2: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.660000] sw-ehci sw-ehci.2: new USB bus registered, assigned bus number 3
[    3.680000] sw-ehci sw-ehci.2: USB 0.0 started, EHCI 1.00
[    3.680000] hub 3-0:1.0: USB hub found
[    3.750000] sw-ohci sw-ohci.2: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    3.750000] sw-ohci sw-ohci.2: new USB bus registered, assigned bus number 4
[    3.810000] hub 4-0:1.0: USB hub found
[   57.490000] usb 3-1: new high speed USB device number 2 using sw-ehci
[   58.780000] usb 3-1: USB disconnect, device number 2
[   63.400000] usb 3-1: new high speed USB device number 3 using sw-ehci
[   63.600000] usbserial: USB Serial Driver core
[   63.620000] USB Serial support registered for GSM modem (1-port)
[   63.620000] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB0
[   63.620000] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB1
[   63.620000] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB2
[   63.620000] option: v0.7.2:USB Driver for GSM modems