December 04, 2020, 01:25:22 pm

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 - Brakelmann

1
Hi,

I just recognize that my cubie does not register on fritzbox router for IPV6 althoug it has got a IPV6 address.

My Raspberry-pi registers.
Raspberry:
root@pi3 ~ # ifconfig
eth0      Link encap:Ethernet  Hardware Adresse b8:27:eb:40:2d:b5
          inet Adresse:192.168.1.11  Bcast:192.168.1.255  Maske:255.255.255.0
          inet6-Adresse: 2a02:908:8a2:8da0:7bf7:e30f:7cfc:a63a/64 Gültigkeitsbereich:Global
          inet6-Adresse: fe80::4036:120c:36ab:fba3/64 Gültigkeitsbereich:Verbindung
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metrik:1
          RX packets:62624 errors:0 dropped:70 overruns:0 frame:0
          TX packets:34648 errors:0 dropped:0 overruns:0 carrier:0
          Kollisionen:0 Sendewarteschlangenlänge:1000
          RX bytes:86706906 (82.6 MiB)  TX bytes:3032791 (2.8 MiB)


root@pi3 ~ # nslookup -query=AAAA pi3
Server:         192.168.1.1
Address:        192.168.1.1#53

pi3.fritz.box   has AAAA address 2a02:908:8a2:8da0:7bf7:e30f:7cfc:a63a


CubieTruck:
root@ct ~ # ifconfig
eth0      Link encap:Ethernet  HWaddr 02:18:06:02:c4:20
          inet addr:192.168.1.10  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: 2a02:908:8a2:8da0:18:6ff:fe02:c420/64 Scope:Global
          inet6 addr: fe80::18:6ff:fe02:c420/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1063 errors:0 dropped:0 overruns:0 frame:0
          TX packets:243 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:80853 (78.9 KiB)  TX bytes:49064 (47.9 KiB)
          Interrupt:117 Base address:0xc000


root@ct ~ # nslookup -query=AAAA ct
Server:         192.168.1.1
Address:        192.168.1.1#53

*** Can't find ct: No answer


For IPV4 it is working:
root@ct ~ # nslookup ct
Server:         192.168.1.1
Address:        192.168.1.1#53

Name:   ct.fritz.box
Address: 192.168.1.10


Any idea how to solve this?

Thanks, Stefan.


2
Thanks for your reply, Stevie.

I was not able to solve this spin down issue with Optin S.
I created a cronjob wich is executed each hour which set the disk to standby using the option -y of hdparm.

This works.

Cheers, Stefan.
3
Hi,

I updated my cubitruck today using armbian legacy, and installed on NAND.
Everything works perfect so far.

Just a little problem I am fighting with.
Trying to spin down my SATA drive does not work as expected.
When I put the drive to sleep using
"hdparm -y /dev/sdb" it works as expected.

Using "hdparm -S 12 /dev/sdb" returns
"/dev/sdb:
setting standby to 12 (1 minutes)"

But the drive does not spin down after a minute.

Any idea how to get that solved.

Thanks, Brakelmann.

4
Thanks Slovenia,

"GPT" was the usefull hint.

fdisk does not support GPT, so used parted to use GPT and now the whole ammount of storage can be addressed.

On more question:
fdisk -l say that the partition is not correctly alligned.
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1  4294967295  2147483647+  ee  GPT
Partition 1 does not start on physical sector boundary.


Is this a must to be corrected or can ignore this?
I did some google research but was not able to allign this so that fdisk does not give this message.
Maybe it is just because fdisk does not support GPT.
Parted says that the partition /dev/sda1 is sligned properly.

Thanks, Brakelmann.
5
Hi,

got a brand new 4TB hdd, for using my Cubie as nas.
Created a single partition and formatted it to ext4.
Disk /dev/sda: 4000.8 GB, 4000787030016 bytes
90 heads, 3 sectors/track, 28940878 cylinders, total 7814037168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x774b8f5c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048  4294967294  2147482623+  83  Linux


Mounted it, but only 2TB are used / mounted:
root@cubie ~ # df -h
Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
rootfs          7,1G    2,1G  4,7G   31% /
/dev/root       7,1G    2,1G  4,7G   31% /
devtmpfs        992M       0  992M    0% /dev
tmpfs           199M    952K  198M    1% /run
tmpfs           5,0M       0  5,0M    0% /run/lock
tmpfs           397M       0  397M    0% /run/shm
/dev/mmcblk0p1   30G    9,4G   19G   34% /media/sd
/dev/sdb1       917G    800G   72G   92% /media/hdd
/dev/sda1       2,0T    199M  1,9T    1% /media/sda1


Any sugestion how to use the whole 4TB of the hdd?

Thanks Brakelmann.
6
Hi slovenia,

yes!
This did the trick.
The path was not set.

Thanks, Brakelmann.
7
Quote from: rose28357 on February 13, 2014, 01:58:09 pm
Somewhere here we found that you need to start the wifi driver in the ap mode.

Solved it by modifying bcmdhd module load :
bcmdhd op_mode=2

Read the whole story here


Hi,

I read the whole story, but I am not able to find the correct config file or how to change the "bcmdhd op_mode" to "2".

EDIT: If found the /etc/modules file and changed the parameter to "bcmdhd op_mode=2"
Rebooted the CT but without any success.
root@cubie ~ # iwconfig
lo        no wireless extensions.

br0       no wireless extensions.

tunl0     no wireless extensions.

wlan0     IEEE 802.11  ESSID:"" 
          Mode:Managed  Frequency:2.412 GHz  Access Point: Not-Associated   
          Bit Rate:65 Mb/s   Tx-Power:32 dBm   
          Retry min limit:7   RTS thr:off   Fragment thr:off
          Power Managementmode:All packets received
          Link Quality=5/5  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

eth0      no wireless extensions.

p2p0      IEEE 802.11bgn  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated   Tx-Power=1496 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on


Thanks, Brakelmann.
8
Hi there,

is there any information how to set up the cubie as WLAN Acces Point / HotSpot?
I am using the following interfaces configuration.
auto lo br0
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual

iface br0 inet static
        address 192.168.1.10
        netmask 255.255.255.0
        gateway 192.168.1.3
        hwaddress ether AE:50:30:27:5A:CF
bridge_ports eth0 wlan0


The hostapd file is still untouched, just for testing purposes:
ssid=CUBIE
interface=wlan0
hw_mode=g
channel=1
bridge=br0

logger_syslog=0
logger_syslog_level=0

wmm_enabled=0
wpa=2
preamble=1
wpa_psk=66eb31d2b48d19ba216f2e50c6831ee11be98e2fa3a8075e30b866f4a5ccda27
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1
macaddr_acl=0


What else is neccesary?
I started "/etc/init.d/hostapd start" but I am not able to find the SSID with my WLAN scanner.

Any help is much appreciated, thanks Brakelmann.
9
Quote from: patwood on February 08, 2014, 08:05:26 pm
These usually appear when the HDMI cable is plugged. Maybe yours isn't making good contact?


Hi patwood,

I found out that these messages appear when I switch off my monitor and the HDMI calbe is still connected.
So removing the HDMI calbe from the CT stops theses messages.

Thanks, Brakelmann.


10
Hi,

any idea how to get rid of these messages which logged almost every 30 seconds to syslog?

Feb  8 16:58:33 cubie kernel: [ 4649.494984] EDID version: 1.3
Feb  8 16:58:33 cubie kernel: [ 4649.509877] PCLK=119000000 X 1680 1728 1760 1840 Y 1050 1053 1059 1080 fr 59 PN
Feb  8 16:58:33 cubie kernel: [ 4649.529007] disp_clk: Could not find a matching pll-freq for 146850000 pclk
Feb  8 16:58:33 cubie kernel: [ 4649.534869] disp_clk: Could not find a matching pll-freq for 78800000 pclk
Feb  8 16:58:33 cubie kernel: [ 4649.540708] disp_clk: Could not find a matching pll-freq for 26150000 pclk
Feb  8 16:59:07 cubie kernel: [ 4683.568683] ParseEDID
Feb  8 16:59:07 cubie kernel: [ 4683.604979] EDID version: 1.3
Feb  8 16:59:07 cubie kernel: [ 4683.619908] PCLK=119000000 X 1680 1728 1760 1840 Y 1050 1053 1059 1080 fr 59 PN
Feb  8 16:59:07 cubie kernel: [ 4683.639044] disp_clk: Could not find a matching pll-freq for 146850000 pclk
Feb  8 16:59:07 cubie kernel: [ 4683.644969] disp_clk: Could not find a matching pll-freq for 78800000 pclk
Feb  8 16:59:07 cubie kernel: [ 4683.650798] disp_clk: Could not find a matching pll-freq for 26150000 pclk
Feb  8 16:59:41 cubie kernel: [ 4717.408698] ParseEDID


Thanks, Brakelmann.
12
Hi There,

is it possible to boot from nand and use the SDCard as mounted storage?!
If in insert the sdcard, the CT always wants to boot from SD card.

Thanks, Brakelmann.
13
Hi Guys,

thanks for your support.
To make a long story short, I copied slovenias interface and adjusted the ipadresses which wokred fine after stopping and starting the network service.

After that I adjusted the rest to the following...
auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet static
        address 192.168.1.10
        netmask 255.255.255.0
        gateway 192.168.1.3
        hwaddress ether 00:01:43:5e:cb:55


and it is working fine.
There is no difference between the interfaces file than the one posted before.
I suppose there must have been some kind of hidden character (TAB or whatever) within this file which screwed the whole thing up.

Thanks, Brakelmann.
14
Quote from: agarbato on February 07, 2014, 04:34:39 am
QuoteDid you try to restart the network service instead or reboot?

Yes, I tried both.
Quote
Is the default gateway 192.168.1.3 reachable?

Yes, it is reachable.

Quote
Try to set it manually and see if it works


ifconfig eth0  192.168.1.3 netmask 255.255.255.0 up
route add default gw 192.168.1.3


Setting this manually worked out without a problem, but the settings get lost after reboot?

Mh, kind of strange.

If nobody has further ideas I will try to go ahead with the lease reservation in my router,
as long as the static configuration is not working out for me.

Thanks, Brakelmann.
15
Hi guys,

thanks for your quick response.
Yes indeed I missed "auto eth0" but I tried that before.
So I added "auto eth0" so that my interfaces looks like this...
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.3
hwaddress ether 00:01:43:5e:cb:55 # will be added at first boot


If I use ifup eth0 this command brings up the following error message:
ifup eth0
RTNETLINK answers: No such process
Failed to bring up eth0


If I change "static" to "dhcp" it runs without any problem. And eth0 gets a dynamic IP address from the DHCP Server and has got the static IP 192.168.1.10
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
address 192.168.1.10
netmask 255.255.255.0
gateway 192.168.1.3
hwaddress ether 00:01:43:5e:cb:55 # will be added at first boot


Any ohter idea how to fix this?

Thanks, Brakelmann.