October 20, 2020, 04:55:34 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.

Topics - hhh123

1
Hello Guys,

Whenever i connect my USB "Segate Freeagent USB disk" my cubitruck get turn off automatically...i have tried  observed some wearied things in logs too(sometime logs getting generated and sometimes its not).

Case 1:-  USB Disk connected to cubietruck at the time of boot(connected before turn on )
Description :-  I have connected USB disk before i turn on cubietruck, booting process went smooth but usb disk is getting detected in fdisk. I also tried to initiate the usb drivers by command " modprobe usb-storage"   and "lsusb " but still no luck. I found below things in syslog logs. 


  Jan  5 07:43:49 cubietruck kernel: [  630.325101] ehci_irq: port change detect
Jan  5 07:43:49 cubietruck kernel: [  630.329479] ehci_irq: port change detect
Jan  5 07:45:10 cubietruck kernel: [  711.227184] ehci_irq: port change detect
Jan  5 07:45:10 cubietruck kernel: [  711.231553] ehci_irq: port change detect
Jan  5 07:45:10 cubietruck kernel: [  711.347060] ehci_irq: port change detect
Jan  5 07:45:10 cubietruck kernel: [  711.351431] ehci_irq: port change detect
Jan  5 07:45:11 cubietruck kernel: [  711.487372] ehci_irq: port change detect
Jan  5 07:45:11 cubietruck kernel: [  711.491980] ehci_irq: port change detect
Jan  5 07:45:11 cubietruck kernel: [  711.597273] ehci_irq: port change detect
Jan  5 07:45:11 cubietruck kernel: [  711.601643] ehci_irq: port change detect
Jan  5 07:45:12 cubietruck kernel: [  712.444748] ehci_irq: port change detect
Jan  5 07:45:12 cubietruck kernel: [  712.449112] ehci_irq: port change detect

Did not found anything in kernel or any logs apart from this. One more thing i observed in this case lights on USB disk are not get ignited but some nasty sound coming out from USB Disk.
-----------

Case 2 :- Connect USB disk to cubietruck  within a normal operation.
Description :-  I have connected my same USB HDD to cubitruck, but this light on USB disk got ignited and some logs also get gerated by kernel , found those in kernel logs. Pasted  below.

Dec 29 13:25:26 cubietruck kernel: [  520.351149] usb 5-1: USB disconnect, device number 2
Dec 29 13:25:40 cubietruck kernel: [  534.566229] ehci_irq: port change detect
Dec 29 13:25:40 cubietruck kernel: [  534.570615] ehci_irq: port change detect
Dec 29 13:25:41 cubietruck kernel: [  535.932840] ehci_irq: port change detect
Dec 29 13:25:42 cubietruck kernel: [  536.212922] usb 4-1: new high-speed USB device number 3 using sw-ehci
Dec 29 13:25:42 cubietruck kernel: [  536.486090] Initializing USB Mass Storage driver...
Dec 29 13:25:42 cubietruck kernel: [  536.489582] scsi1 : usb-storage 4-1:1.0
Dec 29 13:25:42 cubietruck kernel: [  536.497848] usbcore: registered new interface driver usb-storage
Dec 29 13:25:42 cubietruck kernel: [  536.501527] USB Mass Storage support registered.
Dec 29 13:25:43 cubietruck kernel: [  537.497651] scsi 1:0:0:0: Direct-Access     Seagate  FreeAgent Go     102D PQ: 0 ANSI: 4
Dec 29 13:25:43 cubietruck kernel: [  537.518576] sd 1:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
Dec 29 13:25:43 cubietruck kernel: [  537.527226] sd 1:0:0:0: [sda] Write Protect is off
Dec 29 13:25:43 cubietruck kernel: [  537.531249] sd 1:0:0:0: [sda] Mode Sense: 1c 00 00 00
Dec 29 13:25:43 cubietruck kernel: [  537.542439] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Dec 30 15:29:47 cubietruck kernel: imklog 5.8.6, log source = /proc/kmsg started.
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Booting Linux on physical CPU 0
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Initializing cgroup subsys cpuset
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Initializing cgroup subsys cpu
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Linux version 3.4.61+ (matson@ubt) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #2 SMP PREEMPT Tue Nov 12 20:19:35 CST 2013
Dec 30 15:29:47 cubietruck kernel: [    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
Dec 30 15:29:47 cubietruck kernel: [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Machine: sun7i
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Memory cut off:
Dec 30 15:29:47 cubietruck kernel: [    0.000000]       MALI : 0x5c000000 - 0x5fffffff  (  64 MB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Ignoring unrecognised tag 0x00000000
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Memory Reserved:
Dec 30 15:29:47 cubietruck kernel: [    0.000000]       SYS  : 0x43000000 - 0x4300ffff  (  64 kB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000]       VE   : 0x44000000 - 0x48ffffff  (  80 MB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000]       G2D  : 0x49000000 - 0x49ffffff  (  16 MB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000]       LCD  : 0x5a000000 - 0x5bffffff  (  32 MB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Memory policy: ECC disabled, Data cache writealloc
Dec 30 15:29:47 cubietruck kernel: [    0.000000] sunxi: Allwinner A20 (AW1651/sun7i) detected.
Dec 30 15:29:47 cubietruck kernel: [    0.000000] On node 0 totalpages: 507904
Dec 30 15:29:47 cubietruck kernel: [    0.000000] free_area_init_node: node 0, pgdat c0890340, node_mem_map d0000000
Dec 30 15:29:47 cubietruck kernel: [    0.000000]   DMA zone: 512 pages used for memmap
Dec 30 15:29:47 cubietruck kernel: [    0.000000]   DMA zone: 0 pages reserved
Dec 30 15:29:47 cubietruck kernel: [    0.000000]   DMA zone: 65024 pages, LIFO batch:15
Dec 30 15:29:47 cubietruck kernel: [    0.000000]   Normal zone: 1008 pages used for memmap
Dec 30 15:29:47 cubietruck kernel: [    0.000000]   Normal zone: 111632 pages, LIFO batch:31
Dec 30 15:29:47 cubietruck kernel: [    0.000000]   HighMem zone: 2576 pages used for memmap
Dec 30 15:29:47 cubietruck kernel: [    0.000000]   HighMem zone: 327152 pages, LIFO batch:31
Dec 30 15:29:47 cubietruck kernel: [    0.000000] PERCPU: Embedded 7 pages/cpu @d100e000 s7360 r8192 d13120 u32768
Dec 30 15:29:47 cubietruck kernel: [    0.000000] pcpu-alloc: s7360 r8192 d13120 u32768 alloc=8*4096
Dec 30 15:29:47 cubietruck kernel: [    0.000000] pcpu-alloc:
0
1

Dec 30 15:29:47 cubietruck kernel: [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 503808
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Kernel command line: console=tty0 root=/dev/nandb loglevel=8 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p50 rootwait panic=10 rootfstype=ext4 rootflags=discard
Dec 30 15:29:47 cubietruck kernel: [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Dec 30 15:29:47 cubietruck kernel: [    0.000000] allocated 4194304 bytes of page_cgroup
Dec 30 15:29:47 cubietruck kernel: [    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Memory: 448MB 1536MB = 1984MB total
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Memory: 1868996k/1868996k available, 162620k reserved, 1318912K highmem
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Virtual kernel memory layout:
Dec 30 15:29:47 cubietruck kernel: [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000]       .text : 0xc0008000 - 0xc07f566c   (8118 kB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000]       .init : 0xc07f6000 - 0xc082bcc0   ( 216 kB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000]       .data : 0xc082c000 - 0xc0896f40   ( 428 kB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000]        .bss : 0xc0896f64 - 0xc0a55128   (1785 kB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Preemptible hierarchical RCU implementation.



Anyone facing the same issue ?



Regards,
Harshal
2
Hello Guys,

Whenever i connect my USB "Segate Freeagent USB disk" my cubitruck get turn off automatically...i have tried  observed some wearied things in logs too(sometime logs getting generated and sometimes its not).

Case 1:-  USB Disk connected to cubietruck at the time of boot(connected before turn on )
Description :-  I have connected USB disk before i turn on cubietruck, booting process went smooth but usb disk is getting detected in fdisk. I also tried to initiate the usb drivers by command " modprobe usb-storage"   and "lsusb " but still no luck. I found below things in syslog logs. 


  Jan  5 07:43:49 cubietruck kernel: [  630.325101] ehci_irq: port change detect
Jan  5 07:43:49 cubietruck kernel: [  630.329479] ehci_irq: port change detect
Jan  5 07:45:10 cubietruck kernel: [  711.227184] ehci_irq: port change detect
Jan  5 07:45:10 cubietruck kernel: [  711.231553] ehci_irq: port change detect
Jan  5 07:45:10 cubietruck kernel: [  711.347060] ehci_irq: port change detect
Jan  5 07:45:10 cubietruck kernel: [  711.351431] ehci_irq: port change detect
Jan  5 07:45:11 cubietruck kernel: [  711.487372] ehci_irq: port change detect
Jan  5 07:45:11 cubietruck kernel: [  711.491980] ehci_irq: port change detect
Jan  5 07:45:11 cubietruck kernel: [  711.597273] ehci_irq: port change detect
Jan  5 07:45:11 cubietruck kernel: [  711.601643] ehci_irq: port change detect
Jan  5 07:45:12 cubietruck kernel: [  712.444748] ehci_irq: port change detect
Jan  5 07:45:12 cubietruck kernel: [  712.449112] ehci_irq: port change detect

Did not found anything in kernel or any logs apart from this. One more thing i observed in this case lights on USB disk are not get ignited but some nasty sound coming out from USB Disk.
-----------

Case 2 :- Connect USB disk to cubietruck  within a normal operation.
Description :-  I have connected my same USB HDD to cubitruck, but this light on USB disk got ignited and some logs also get gerated by kernel , found those in kernel logs. Pasted  below.

Dec 29 13:25:26 cubietruck kernel: [  520.351149] usb 5-1: USB disconnect, device number 2
Dec 29 13:25:40 cubietruck kernel: [  534.566229] ehci_irq: port change detect
Dec 29 13:25:40 cubietruck kernel: [  534.570615] ehci_irq: port change detect
Dec 29 13:25:41 cubietruck kernel: [  535.932840] ehci_irq: port change detect
Dec 29 13:25:42 cubietruck kernel: [  536.212922] usb 4-1: new high-speed USB device number 3 using sw-ehci
Dec 29 13:25:42 cubietruck kernel: [  536.486090] Initializing USB Mass Storage driver...
Dec 29 13:25:42 cubietruck kernel: [  536.489582] scsi1 : usb-storage 4-1:1.0
Dec 29 13:25:42 cubietruck kernel: [  536.497848] usbcore: registered new interface driver usb-storage
Dec 29 13:25:42 cubietruck kernel: [  536.501527] USB Mass Storage support registered.
Dec 29 13:25:43 cubietruck kernel: [  537.497651] scsi 1:0:0:0: Direct-Access     Seagate  FreeAgent Go     102D PQ: 0 ANSI: 4
Dec 29 13:25:43 cubietruck kernel: [  537.518576] sd 1:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
Dec 29 13:25:43 cubietruck kernel: [  537.527226] sd 1:0:0:0: [sda] Write Protect is off
Dec 29 13:25:43 cubietruck kernel: [  537.531249] sd 1:0:0:0: [sda] Mode Sense: 1c 00 00 00
Dec 29 13:25:43 cubietruck kernel: [  537.542439] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Dec 30 15:29:47 cubietruck kernel: imklog 5.8.6, log source = /proc/kmsg started.
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Booting Linux on physical CPU 0
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Initializing cgroup subsys cpuset
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Initializing cgroup subsys cpu
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Linux version 3.4.61+ (matson@ubt) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #2 SMP PREEMPT Tue Nov 12 20:19:35 CST 2013
Dec 30 15:29:47 cubietruck kernel: [    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
Dec 30 15:29:47 cubietruck kernel: [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Machine: sun7i
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Memory cut off:
Dec 30 15:29:47 cubietruck kernel: [    0.000000]       MALI : 0x5c000000 - 0x5fffffff  (  64 MB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Ignoring unrecognised tag 0x00000000
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Memory Reserved:
Dec 30 15:29:47 cubietruck kernel: [    0.000000]       SYS  : 0x43000000 - 0x4300ffff  (  64 kB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000]       VE   : 0x44000000 - 0x48ffffff  (  80 MB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000]       G2D  : 0x49000000 - 0x49ffffff  (  16 MB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000]       LCD  : 0x5a000000 - 0x5bffffff  (  32 MB)
Dec 30 15:29:47 cubietruck kernel: [    0.000000] Memory policy: ECC disabled, Data cache writealloc
Dec 30 15:29:47 cubietruck kernel: [    0.000000] sunxi: Allwinner A20 (AW1651/sun7i) detected.
Dec 30 15:29:47 cubietruck kernel: [    0.000000] On node 0 totalpages: 507904
Dec 30 15:29:47 cubietruck kernel: [    0.000000] free_area_init_node: node 0, pgdat c0890340, node_mem_map d0000000
Dec 30 15:29:47 cubietruck kernel: [    0.000000]   DMA zone: 512 pages used for memmap
Dec 30 15:29:47 cubietruck kernel: [    0.000000]   DMA zone: 0 pages reserved
Dec 30 15:29:47 cubietruck kernel: [    0.000000]   DMA zone: 65024 pages, LIFO batch:15
Dec 30 15:29:47 cubietruck kernel: [    0.000000]   Normal zone: 1008 pages used for memmap
Dec 30 15:29:47 cubietruck kernel: [    0.000000]   Normal zone: 111632 pages, LIFO batch:31
Dec 30 15:29:47 cubietruck kernel: [    0.000000]   HighMem zone: 2576 pages used for memmap
Dec 30 15:29:47 cubietruck kernel: [    0.000000]   HighMem zone: 327152 pages, LIFO batch:31
Dec 30 15:29:47 cubietruck kernel: [    0.000000] PERCPU: Embedded 7 pages/cpu @d100e000 s7360 r8192 d13120 u32768
Dec 30 15:29:47 cubietruck kernel: [    0.000000] pcpu-alloc: s7360 r8192 d13120 u32768 alloc=8*4096
Dec 30 15:29:47 cubietruck kernel: [    0.000000] pcpu-alloc:
  • 0
  • 1
    Dec 30 15:29:47 cubietruck kernel: [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 503808
    Dec 30 15:29:47 cubietruck kernel: [    0.000000] Kernel command line: console=tty0 root=/dev/nandb loglevel=8 console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p50 rootwait panic=10 rootfstype=ext4 rootflags=discard
    Dec 30 15:29:47 cubietruck kernel: [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    Dec 30 15:29:47 cubietruck kernel: [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    Dec 30 15:29:47 cubietruck kernel: [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    Dec 30 15:29:47 cubietruck kernel: [    0.000000] allocated 4194304 bytes of page_cgroup
    Dec 30 15:29:47 cubietruck kernel: [    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
    Dec 30 15:29:47 cubietruck kernel: [    0.000000] Memory: 448MB 1536MB = 1984MB total
    Dec 30 15:29:47 cubietruck kernel: [    0.000000] Memory: 1868996k/1868996k available, 162620k reserved, 1318912K highmem
    Dec 30 15:29:47 cubietruck kernel: [    0.000000] Virtual kernel memory layout:
    Dec 30 15:29:47 cubietruck kernel: [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    Dec 30 15:29:47 cubietruck kernel: [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    Dec 30 15:29:47 cubietruck kernel: [    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
    Dec 30 15:29:47 cubietruck kernel: [    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
    Dec 30 15:29:47 cubietruck kernel: [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    Dec 30 15:29:47 cubietruck kernel: [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    Dec 30 15:29:47 cubietruck kernel: [    0.000000]       .text : 0xc0008000 - 0xc07f566c   (8118 kB)
    Dec 30 15:29:47 cubietruck kernel: [    0.000000]       .init : 0xc07f6000 - 0xc082bcc0   ( 216 kB)
    Dec 30 15:29:47 cubietruck kernel: [    0.000000]       .data : 0xc082c000 - 0xc0896f40   ( 428 kB)
    Dec 30 15:29:47 cubietruck kernel: [    0.000000]        .bss : 0xc0896f64 - 0xc0a55128   (1785 kB)
    Dec 30 15:29:47 cubietruck kernel: [    0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    Dec 30 15:29:47 cubietruck kernel: [    0.000000] Preemptible hierarchical RCU implementation.



    Anyone facing the same issue ?



    Regards,
    Harshal
3
Tips, Tricks and Guides / script to switch display
January 03, 2014, 05:56:59 am
Guys,

is the any one have a script to switch display from VGA to HDMI and vice versa.

Regards,
Harshal
4
Hello Guys,

I recently bought a cubietruck. I saw its getting turn off automatically i also check logs but didn't found anything there. any clues ?   

Regards,
Harshal