WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: piCore-6.1alpha2  (Read 16572 times)

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
piCore-6.1alpha2
« on: February 08, 2015, 09:08:55 AM »
Team Tiny Core is pleased to announce the availability of piCore-6.1alpha2:

http://www.tinycorelinux.net/6.x/armv6/test_releases/

Changelog for 6.1 alpha2:

* kernel updated to 3.18.6


Changelog for 6.1 alpha1:

It is the first test release with the new Device Tree enabled 3.18.5 kernel. Except kernel change it is identical to piCore-6.0


Please note, it is for boards with armv6 processor, not for the Raspberry Pi 2.

Please read https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README !
« Last Edit: February 08, 2015, 04:09:19 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline gpulido

  • Jr. Member
  • **
  • Posts: 57
Re: piCore-6.1alpha2
« Reply #1 on: February 08, 2015, 02:29:50 PM »
Hello,
I'm testing the 6.1 alpha2 on a raspi b 2011.12 and the spi module is not listed on the lsmod.
Also if I try to load it manually using sudo modprobe spi-bcm2708 I receive the following message:

Code: [Select]
modprobe: can't load module spi-bcm2708 (kernel/drivers/spi/spi-bcm2708.ko.gz): No such device
Am I missing something?

Thanks!

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore-6.1alpha2
« Reply #2 on: February 08, 2015, 03:21:46 PM »
Hello,
I'm testing the 6.1 alpha2 on a raspi b 2011.12 and the spi module is not listed on the lsmod.
Also if I try to load it manually using sudo modprobe spi-bcm2708 I receive the following message:

Code: [Select]
modprobe: can't load module spi-bcm2708 (kernel/drivers/spi/spi-bcm2708.ko.gz): No such device
Am I missing something?

Thanks!

Thanks for reporting. I can reproduce on my Model B. Will investigate.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore-6.1alpha2
« Reply #3 on: February 08, 2015, 03:56:45 PM »
Add "dtparam=spi=on" to config.txt (and reboot).
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1243
Re: piCore-6.1alpha2
« Reply #4 on: February 09, 2015, 07:08:35 AM »
Add "dtparam=spi=on" to config.txt (and reboot).

Does load the module, or just make it availiable to load?   

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore-6.1alpha2
« Reply #5 on: February 09, 2015, 07:11:51 AM »
Add "dtparam=spi=on" to config.txt (and reboot).

Does load the module, or just make it availiable to load?   

When system booted, modul is loaded and /dev has the two spi devices.
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1243
Re: piCore-6.1alpha2
« Reply #6 on: February 09, 2015, 07:15:27 AM »
Add "dtparam=spi=on" to config.txt (and reboot).

Does load the module, or just make it availiable to load?   

When system booted, modul is loaded and /dev has the two spi devices.

I'm still trying to understand the logic of device tree.  If certain modules can only be enabled at boot, it seems to be less flexible that just modules.  i guess it does allow for a built-in module to be disabled.

Offline gpulido

  • Jr. Member
  • **
  • Posts: 57
Re: piCore-6.1alpha2
« Reply #7 on: February 09, 2015, 12:33:16 PM »
Add "dtparam=spi=on" to config.txt (and reboot).

Probably I'm late (I haven't been able to test it until now) but it works perfectly.

Thank you again!

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: piCore-6.1alpha2
« Reply #8 on: February 15, 2015, 03:32:06 AM »
Hi Bela.

I seem to have a problem with one of my wifi adaptors using your 3.18.6 - 6.1alpha2.
It was working fine in 3.18.5-6.1alpha1.

My Ralink RT5370 adaptor is not able to connect or scan any more:
Result from #sudo wifi.sh":
Code: [Select]
Select Wifi Network

    ESSID                         Enc   Qual    Channel Type

Enter selection ( 1 - 0 ) or (q)uit:


 
Code: [Select]
tc@piCorePlayer:~$ lsusb
Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. SMC9512/9514 USB Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub



Code: [Select]
tc@piCorePlayer:~$ lsmod
Module                  Size  Used by    Not tainted
arc4                    1948  2
snd_bcm2835            21534  1
rt2800usb              18891  0
rt2x00usb              12500  1 rt2800usb
rt2800lib              81727  1 rt2800usb
rt2x00lib              49205  3 rt2800usb,rt2x00usb,rt2800lib
mac80211              560336  3 rt2x00usb,rt2800lib,rt2x00lib
snd_soc_bcm2708_i2s     7611  0
snd_soc_pcm512x_i2c     2130  0
snd_soc_tas5713         6048  0
snd_soc_pcm512x         8452  1 snd_soc_pcm512x_i2c
snd_soc_pcm5102a        2093  0
cfg80211              474191  2 rt2x00lib,mac80211
snd_soc_core          177312  4 snd_soc_bcm2708_i2s,snd_soc_tas5713,snd_soc_pcm512x,snd_soc_pcm5102a
regmap_i2c              2944  2 snd_soc_pcm512x_i2c,snd_soc_tas5713
regmap_mmio             3548  1 snd_soc_bcm2708_i2s
snd_pcm_dmaengine       5866  1 snd_soc_core
snd_pcm                93356  4 snd_bcm2835,snd_soc_core,snd_pcm_dmaengine
snd_timer              22822  1 snd_pcm
rfkill                 22377  1 cfg80211
snd_compress            8758  1 snd_soc_core
crc_ccitt               1612  1 rt2800lib
snd                    67665  6 snd_bcm2835,snd_soc_core,snd_pcm,snd_timer,snd_compress
i2c_bcm2708             5964  0
uio_pdrv_genirq         3646  0
uio                     9941  1 uio_pdrv_genirq

My other wifi adaptor (an edimax is working fine)
Steen

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore-6.1alpha2
« Reply #9 on: February 15, 2015, 04:14:58 AM »
What is in demesg?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: piCore-6.1alpha2
« Reply #10 on: February 15, 2015, 04:45:52 AM »
dmesg output:
Code: [Select]
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.18.6-piCore+ (root@beta.hasix.org) (gcc version 4.9.1 (crosstool-NG 1.20.0) ) #1 PREEMPT Sun Feb 8 01:08:30 CET 2015
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine model: Raspberry Pi Model B
[    0.000000] cma: Reserved 8 MiB at 0x1b400000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 114688
[    0.000000] free_area_init_node: node 0, pgdat c085fb1c, node_mem_map db080000
[    0.000000]   Normal zone: 896 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 114688 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113792
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=1024 bcm2708.boardrev=0xd bcm2708.serial=0x5be8bc82 smsc95xx.macaddr=B8:27:EB:E8:BC:82 bcm2708_fb.fbswap=1 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.fiq_fsm_mask=0x7 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/ram0 elevator=deadline rootwait nortc loglevel=3 noembed noswap pause showapp
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 433364K/458752K available (5986K kernel code, 358K rwdata, 1888K rodata, 340K init, 734K bss, 25388K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xdc800000 - 0xff000000   ( 552 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07b8af4   (7875 kB)
[    0.000000]       .init : 0xc07b9000 - 0xc080e000   ( 340 kB)
[    0.000000]       .data : 0xc080e000 - 0xc0867b8c   ( 359 kB)
[    0.000000]        .bss : 0xc0867b8c - 0xc091f508   ( 735 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:522
[    0.000025] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483648000ns
[    0.000076] Switching to timer-based delay loop, resolution 1000ns
[    0.000370] Console: colour dummy device 80x30
[    0.000589] console [tty1] enabled
[    0.000617] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.000644] pid_max: default: 32768 minimum: 301
[    0.001025] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001052] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002038] Initializing cgroup subsys memory
[    0.002094] Initializing cgroup subsys devices
[    0.002128] Initializing cgroup subsys freezer
[    0.002158] Initializing cgroup subsys net_cls
[    0.002186] Initializing cgroup subsys blkio
[    0.002284] CPU: Testing write buffer coherency: ok
[    0.002364] ftrace: allocating 19659 entries in 58 pages
[    0.104542] Setting up static identity map for 0x56b230 - 0x56b28c
[    0.107317] devtmpfs: initialized
[    0.126669] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.129842] pinctrl core: initialized pinctrl subsystem
[    0.132380] NET: Registered protocol family 16
[    0.138114] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.164321] cpuidle: using governor ladder
[    0.194380] cpuidle: using governor menu
[    0.195094] bcm2708.uart_clock = 3000000
[    0.198103] No ATAGs?
[    0.198154] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.198172] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.198215] mailbox: Broadcom VideoCore Mailbox driver
[    0.198358] bcm2708_vcio: mailbox at f200b880
[    0.198791] bcm_power: Broadcom power driver
[    0.198819] bcm_power_open() -> 0
[    0.198831] bcm_power_request(0, 8)
[    0.699556] bcm_mailbox_read -> 00000080, 0
[    0.699576] bcm_power_request -> 0
[    0.699760] Serial: AMBA PL011 UART driver
[    0.699972] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    0.700376] console [ttyAMA0] enabled
[    0.767949] SCSI subsystem initialized
[    0.768281] usbcore: registered new interface driver usbfs
[    0.768416] usbcore: registered new interface driver hub
[    0.768600] usbcore: registered new device driver usb
[    0.770846] Switched to clocksource stc
[    0.799880] FS-Cache: Loaded
[    0.800317] CacheFiles: Loaded
[    0.817195] NET: Registered protocol family 2
[    0.818678] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.818783] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.818884] TCP: Hash tables configured (established 4096 bind 4096)
[    0.818976] TCP: reno registered
[    0.819003] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.819035] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.819420] NET: Registered protocol family 1
[    0.820087] RPC: Registered named UNIX socket transport module.
[    0.820117] RPC: Registered udp transport module.
[    0.820129] RPC: Registered tcp transport module.
[    0.820141] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.820590] Trying to unpack rootfs image as initramfs...
[    1.316460] Freeing initrd memory: 3772K (dbc41000 - dbff0000)
[    1.335563] bcm2708_dma: DMA manager at f2007000
[    1.335800] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.337322] futex hash table entries: 256 (order: -1, 3072 bytes)
[    1.337468] audit: initializing netlink subsys (disabled)
[    1.337570] audit: type=2000 audit(1.260:1): initialized
[    1.352260] zpool: loaded
[    1.353321] VFS: Disk quotas dquot_6.5.2
[    1.353713] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.356158] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.356858] FS-Cache: Netfs 'nfs' registered for caching
[    1.358667] NFS: Registering the id_resolver key type
[    1.358776] Key type id_resolver registered
[    1.358795] Key type id_legacy registered
[    1.360180] msgmni has been set to 869
[    1.363183] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.363585] io scheduler noop registered
[    1.363624] io scheduler deadline registered (default)
[    1.364029] io scheduler cfq registered
[    1.366690] BCM2708FB: allocated DMA memory 5b800000
[    1.366763] BCM2708FB: allocated DMA channel 0 @ f2007000
[    1.385391] Console: switching to colour frame buffer device 160x64
[    1.399854] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[    1.400337] uart-pl011 dev:f1: no DMA platform data
[    1.401323] vc-cma: Videocore CMA driver
[    1.401350] vc-cma: vc_cma_base      = 0x00000000
[    1.401362] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.401373] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.415312] brd: module loaded
[    1.422864] loop: module loaded
[    1.424056] zram: Created 1 device(s) ...
[    1.424529] vchiq: vchiq_init_state: slot_zero = 0xdb400000, is_master = 0
[    1.425766] Loading iSCSI transport class v2.0-870.
[    1.427213] usbcore: registered new interface driver smsc95xx
[    1.427337] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.627639] Core Release: 2.80a
[    1.627676] Setting default values for core params
[    1.627724] Finished setting default values for core params
[    1.827936] Using Buffer DMA mode
[    1.827964] Periodic Transfer Interrupt Enhancement - disabled
[    1.827978] Multiprocessor Interrupt Enhancement - disabled
[    1.827992] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.828011] Dedicated Tx FIFOs mode
[    1.828454] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xdb814000 dma = 0x5b814000 len=9024
[    1.828493] FIQ FSM acceleration enabled for :
[    1.828493] Non-periodic Split Transactions
[    1.828493] Periodic Split Transactions
[    1.828493] High-Speed Isochronous Endpoints
[    1.828524] dwc_otg: Microframe scheduler enabled
[    1.828597] WARN::hcd_init_fiq:412: FIQ on core 0 at 0xc0410fc4
[    1.828619] WARN::hcd_init_fiq:413: FIQ ASM at 0xc04112a0 length 36
[    1.828655] WARN::hcd_init_fiq:438: MPHI regs_base at 0xdc80a000
[    1.828690] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.828754] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.828826] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.828872] Init: Port Power? op_state=1
[    1.828885] Init: Power Port (0)
[    1.829334] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.829364] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.829383] usb usb1: Product: DWC OTG Controller
[    1.829400] usb usb1: Manufacturer: Linux 3.18.6-piCore+ dwc_otg_hcd
[    1.829416] usb usb1: SerialNumber: bcm2708_usb
[    1.830610] hub 1-0:1.0: USB hub found
[    1.830729] hub 1-0:1.0: 1 port detected
[    1.831600] dwc_otg: FIQ enabled
[    1.831624] dwc_otg: NAK holdoff enabled
[    1.831637] dwc_otg: FIQ split-transaction FSM enabled
[    1.831697] Module dwc_common_port init
[    1.832292] usbcore: registered new interface driver usb-storage
[    1.832747] mousedev: PS/2 mouse device common for all mice
[    1.833734] bcm2835-cpufreq: min=700000 max=700000
[    1.834107] sdhci: Secure Digital Host Controller Interface driver
[    1.834128] sdhci: Copyright(c) Pierre Ossman
[    1.834390] DMA channels allocated for the MMC driver
[    1.870922] Load BCM2835 MMC driver
[    1.871185] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.879304] ledtrig-cpu: registered to indicate activity on CPUs
[    1.879553] hidraw: raw HID events driver (C) Jiri Kosina
[    1.879924] usbcore: registered new interface driver usbhid
[    1.879945] usbhid: USB HID core driver
[    1.880347] TCP: cubic registered
[    1.880381] Initializing XFRM netlink socket
[    1.880440] NET: Registered protocol family 17
[    1.880684] Key type dns_resolver registered
[    1.889264] registered taskstats version 1
[    1.891971] vc-sm: Videocore shared memory driver
[    1.892008] [vc_sm_connected_init]: start
[    1.896502] [vc_sm_connected_init]: end - returning 0
[    1.899092] Freeing unused kernel memory: 340K (c07b9000 - c080e000)
[    1.929264] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.931618] mmc0: new high speed SDHC card at address b368
[    1.941165] mmcblk0: mmc0:b368 SMI   3.75 GiB
[    1.943380]  mmcblk0: p1 p2
[    2.031258] Indeed it is in host mode hprt0 = 00021501
[    2.281207] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.281446] Indeed it is in host mode hprt0 = 00001101
[    2.571700] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.571741] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.573094] hub 1-1:1.0: USB hub found
[    2.573296] hub 1-1:1.0: 3 ports detected
[    2.851163] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.951614] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.951652] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.954976] smsc95xx v1.0.4
[    3.018599] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:e8:bc:82
[    3.111186] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    3.221862] usb 1-1.2: config 1 interface 0 altsetting 0 has 7 endpoint descriptors, different from the interface descriptor's value: 5
[    3.229557] usb 1-1.2: New USB device found, idVendor=148f, idProduct=5370
[    3.229597] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.229617] usb 1-1.2: Product: 802.11 n WLAN
[    3.229633] usb 1-1.2: Manufacturer: Ralink
[    3.229648] usb 1-1.2: SerialNumber: 1.0
[    4.667788] zram0: detected capacity change from 0 to 108470272
[    4.693329] random: mkswap urandom read with 71 bits of entropy available
[    4.709670] Adding 105924k swap on /dev/zram0.  Priority:-1 extents:1 across:105924k SSFS
[    6.907778] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    7.069970] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   22.932935] random: nonblocking pool is initialized
[   29.134263] cfg80211: Calling CRDA to update world regulatory domain
[   31.791247] usb 1-1.2: reset high-speed USB device number 4 using dwc_otg
[   31.902356] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 0502 detected
[   32.037125] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5370 detected
[   32.197815] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   32.200116] usbcore: registered new interface driver rt2800usb
[   34.256203] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[   34.264360] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
[   36.666968] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   38.202240] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: piCore-6.1alpha2
« Reply #11 on: February 15, 2015, 04:54:19 AM »
Steen

interesting. In general it looks OK. Does it work with Raspbian?
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Gerrelt

  • Full Member
  • ***
  • Posts: 182
Re: piCore-6.1alpha2
« Reply #12 on: February 15, 2015, 05:20:43 AM »
I experience almost the same problem on 6.0 and 6.0rc1, and I think I found the problem.
My situation was a little bit different from yours, my AP list wasn't empty, it was too short. It only found half the AP in my neighbourhood.

The problem is that in the wifi.sh script the "iwlist "$WIFI" scanning" command is executed too soon after "ifconfig "$WIFI" up".
At the moment of scanning the network might be up, but the wifi adapter is not entirely started up yet. This resulted in my situation in a partial AP list. The adapter needs a little more time to complete the scan of AP points.
In your situation the adapter it didn't even scan AP points yet.

The "solution" is to wait a little before before executing the iwlist command.
I plan to propose a change to the wifi.sh script, maybe you can test this change too before I propose the change.

The change is very simple:

Create a copy of the wifi.sh script and open it in nano:
Code: [Select]
cd /home/tc
sudo cp /tmp/tcloop/wifi/usr/local/bin/wifi.sh .
sudo chmod a+x wifi.sh
sudo nano wifi.sh

Now move the "sleep 1" at line 85 to line 83.
Save and exit the file, and change the call in bootlocal.sh to:
Code: [Select]
/home/tc/wifi.sh -a -w
The downside of this "fix" is that it will now always take one second extra when connecting to a wifi network.
Furthermore, using a "sleep" in code is normally not a good solution, but I don't see any other way.
Let me know if this works for you.
« Last Edit: February 15, 2015, 05:22:25 AM by Gerrelt »
my Raspberry Pi page: http://raspberry.gerrelt.nl

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: piCore-6.1alpha2
« Reply #13 on: February 15, 2015, 05:25:39 AM »
Same info from piCore 6.1alpha1 (based on kernel 3.18.5)

dmseg:
Code: [Select]
[    0.000000] free_area_init_node: node 0, pgdat c085b93c, node_mem_map db080000
[    0.000000]   Normal zone: 896 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 114688 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113792
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=1024 bcm2708.boardrev=0x10 bcm2708.serial=0xa678a2f4 smsc95xx.macaddr=B8:27:EB:78:A2:F4 bcm2708_fb.fbswap=1 bcm2708.disk_led_gpio=47 bcm2708.disk_led_active_low=0 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/ram0 elevator=deadline rootwait nortc loglevel=3 noembed
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 433364K/458752K available (5973K kernel code, 358K rwdata, 1884K rodata, 340K init, 734K bss, 25388K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xdc800000 - 0xff000000   ( 552 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07b466c   (7858 kB)
[    0.000000]       .init : 0xc07b5000 - 0xc080a000   ( 340 kB)
[    0.000000]       .data : 0xc080a000 - 0xc08639ac   ( 359 kB)
[    0.000000]        .bss : 0xc08639ac - 0xc091b328   ( 735 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:522
[    0.000024] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483648000ns
[    0.000073] Switching to timer-based delay loop, resolution 1000ns
[    0.000365] Console: colour dummy device 80x30
[    0.000589] console [tty1] enabled
[    0.000618] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.000644] pid_max: default: 32768 minimum: 301
[    0.001020] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001049] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002027] Initializing cgroup subsys memory
[    0.002082] Initializing cgroup subsys devices
[    0.002114] Initializing cgroup subsys freezer
[    0.002142] Initializing cgroup subsys net_cls
[    0.002167] Initializing cgroup subsys blkio
[    0.002262] CPU: Testing write buffer coherency: ok
[    0.002340] ftrace: allocating 19605 entries in 58 pages
[    0.108623] Setting up static identity map for 0x567d50 - 0x567dac
[    0.111341] devtmpfs: initialized
[    0.130131] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.133322] pinctrl core: initialized pinctrl subsystem
[    0.135930] NET: Registered protocol family 16
[    0.141517] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.168390] cpuidle: using governor ladder
[    0.198448] cpuidle: using governor menu
[    0.199047] bcm2708.uart_clock = 3000000
[    0.202146] No ATAGs?
[    0.202194] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.202213] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.202253] mailbox: Broadcom VideoCore Mailbox driver
[    0.202394] bcm2708_vcio: mailbox at f200b880
[    0.202513] bcm_power: Broadcom power driver
[    0.202536] bcm_power_open() -> 0
[    0.202548] bcm_power_request(0, 8)
[    0.703281] bcm_mailbox_read -> 00000080, 0
[    0.703303] bcm_power_request -> 0
[    0.703481] Serial: AMBA PL011 UART driver
[    0.703689] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    0.704101] console [ttyAMA0] enabled
[    0.772097] SCSI subsystem initialized
[    0.772439] usbcore: registered new interface driver usbfs
[    0.772587] usbcore: registered new interface driver hub
[    0.772773] usbcore: registered new device driver usb
[    0.774947] Switched to clocksource stc
[    0.803474] FS-Cache: Loaded
[    0.803875] CacheFiles: Loaded
[    0.821289] NET: Registered protocol family 2
[    0.822777] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.822881] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.822983] TCP: Hash tables configured (established 4096 bind 4096)
[    0.823071] TCP: reno registered
[    0.823096] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.823129] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.823498] NET: Registered protocol family 1
[    0.824153] RPC: Registered named UNIX socket transport module.
[    0.824184] RPC: Registered udp transport module.
[    0.824196] RPC: Registered tcp transport module.
[    0.824209] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.824669] Trying to unpack rootfs image as initramfs...
[    1.323778] Freeing initrd memory: 3788K (dbc3d000 - dbff0000)
[    1.343006] bcm2708_dma: DMA manager at f2007000
[    1.343218] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.344825] futex hash table entries: 256 (order: -1, 3072 bytes)
[    1.345226] audit: initializing netlink subsys (disabled)
[    1.345345] audit: type=2000 audit(1.270:1): initialized
[    1.360004] zpool: loaded
[    1.361152] VFS: Disk quotas dquot_6.5.2
[    1.361539] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.364003] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.364694] FS-Cache: Netfs 'nfs' registered for caching
[    1.366742] NFS: Registering the id_resolver key type
[    1.366856] Key type id_resolver registered
[    1.366874] Key type id_legacy registered
[    1.368295] msgmni has been set to 869
[    1.371104] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.371491] io scheduler noop registered
[    1.371530] io scheduler deadline registered (default)
[    1.371942] io scheduler cfq registered
[    1.374575] BCM2708FB: allocated DMA memory 5b800000
[    1.374653] BCM2708FB: allocated DMA channel 0 @ f2007000
[    1.393095] Console: switching to colour frame buffer device 160x64
[    1.407689] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[    1.408161] uart-pl011 dev:f1: no DMA platform data
[    1.408946] vc-cma: Videocore CMA driver
[    1.408972] vc-cma: vc_cma_base      = 0x00000000
[    1.408985] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.408997] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.423053] brd: module loaded
[    1.430671] loop: module loaded
[    1.431153] vchiq: vchiq_init_state: slot_zero = 0xdb400000, is_master = 0
[    1.432360] Loading iSCSI transport class v2.0-870.
[    1.433793] usbcore: registered new interface driver smsc95xx
[    1.433908] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.634307] Core Release: 2.80a
[    1.634345] Setting default values for core params
[    1.634394] Finished setting default values for core params
[    1.834587] Using Buffer DMA mode
[    1.834614] Periodic Transfer Interrupt Enhancement - disabled
[    1.834627] Multiprocessor Interrupt Enhancement - disabled
[    1.834641] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.834659] Dedicated Tx FIFOs mode
[    1.835234] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xdb814000 dma = 0x5b814000 len=9024
[    1.835274] FIQ FSM acceleration enabled for :
[    1.835274] Non-periodic Split Transactions
[    1.835274] Periodic Split Transactions
[    1.835274] High-Speed Isochronous Endpoints
[    1.835306] dwc_otg: Microframe scheduler enabled
[    1.835382] WARN::hcd_init_fiq:412: FIQ on core 0 at 0xc040dae8
[    1.835404] WARN::hcd_init_fiq:413: FIQ ASM at 0xc040ddc4 length 36
[    1.835438] WARN::hcd_init_fiq:438: MPHI regs_base at 0xdc80a000
[    1.835475] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.835540] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.835611] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.835658] Init: Port Power? op_state=1
[    1.835670] Init: Power Port (0)
[    1.836121] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.836151] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.836169] usb usb1: Product: DWC OTG Controller
[    1.836187] usb usb1: Manufacturer: Linux 3.18.5-piCore+ dwc_otg_hcd
[    1.836204] usb usb1: SerialNumber: bcm2708_usb
[    1.837436] hub 1-0:1.0: USB hub found
[    1.837564] hub 1-0:1.0: 1 port detected
[    1.838246] dwc_otg: FIQ enabled
[    1.838269] dwc_otg: NAK holdoff enabled
[    1.838282] dwc_otg: FIQ split-transaction FSM enabled
[    1.838339] Module dwc_common_port init
[    1.838937] usbcore: registered new interface driver usb-storage
[    1.839370] mousedev: PS/2 mouse device common for all mice
[    1.840306] bcm2835-cpufreq: min=700000 max=700000
[    1.840691] sdhci: Secure Digital Host Controller Interface driver
[    1.840712] sdhci: Copyright(c) Pierre Ossman
[    1.841000] DMA channels allocated for the MMC driver
[    1.875025] Load BCM2835 MMC driver
[    1.875279] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.882399] ledtrig-cpu: registered to indicate activity on CPUs
[    1.882677] hidraw: raw HID events driver (C) Jiri Kosina
[    1.883036] usbcore: registered new interface driver usbhid
[    1.883055] usbhid: USB HID core driver
[    1.883486] TCP: cubic registered
[    1.883518] Initializing XFRM netlink socket
[    1.883577] NET: Registered protocol family 17
[    1.883809] Key type dns_resolver registered
[    1.894380] registered taskstats version 1
[    1.894853] vc-sm: Videocore shared memory driver
[    1.894888] [vc_sm_connected_init]: start
[    1.899667] [vc_sm_connected_init]: end - returning 0
[    1.902105] Freeing unused kernel memory: 340K (c07b5000 - c080a000)
[    1.945366] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.947895] mmc0: new high speed SDHC card at address 0001
[    1.955325] mmcblk0: mmc0:0001 00000 7.44 GiB
[    1.957052]  mmcblk0: p1 p2
[    2.035357] Indeed it is in host mode hprt0 = 00021501
[    2.295335] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.295572] Indeed it is in host mode hprt0 = 00001101
[    2.585717] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    2.585757] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.587082] hub 1-1:1.0: USB hub found
[    2.587262] hub 1-1:1.0: 5 ports detected
[    2.865295] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.965758] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.965798] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.969211] smsc95xx v1.0.4
[    3.032308] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:78:a2:f4
[    3.125276] usb 1-1.3: new low-speed USB device number 4 using dwc_otg
[    3.256176] usb 1-1.3: New USB device found, idVendor=03f0, idProduct=0024
[    3.256217] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.256237] usb 1-1.3: Product: HP Basic USB Keyboard
[    3.256253] usb 1-1.3: Manufacturer: CHICONY
[    3.287378] input: CHICONY HP Basic USB Keyboard as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:03F0:0024.0001/input/input0
[    3.287869] hid-generic 0003:03F0:0024.0001: input,hidraw0: USB HID v1.10 Keyboard [CHICONY HP Basic USB Keyboard] on usb-bcm2708_usb-1.3/input0
[    3.365302] usb 1-1.4: new high-speed USB device number 5 using dwc_otg
[    3.476110] usb 1-1.4: config 1 interface 0 altsetting 0 has 7 endpoint descriptors, different from the interface descriptor's value: 5
[    3.483931] usb 1-1.4: New USB device found, idVendor=148f, idProduct=5370
[    3.483971] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.483991] usb 1-1.4: Product: 802.11 n WLAN
[    3.484008] usb 1-1.4: Manufacturer: Ralink
[    3.484024] usb 1-1.4: SerialNumber: 1.0
[    3.996310] zram: Created 1 device(s) ...
[    5.214777] zram0: detected capacity change from 0 to 108478464
[    5.230777] random: mkswap urandom read with 83 bits of entropy available
[    5.249952] Adding 105932k swap on /dev/zram0.  Priority:-1 extents:1 across:105932k SSFS
[    7.025277] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[    7.188701] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    7.357533] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   10.697794] random: nonblocking pool is initialized
[   24.046659] cfg80211: Calling CRDA to update world regulatory domain
[   25.289533] i2c /dev entries driver
[   26.955652] usb 1-1.4: reset high-speed USB device number 5 using dwc_otg
[   27.066431] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 5390, rev 0502 detected
[   27.265244] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 5370 detected
[   27.438569] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   27.440840] usbcore: registered new interface driver rt2800usb
[   30.231522] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   31.708358] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1

lsmod:
Code: [Select]
tc@box:~$ lsmod
Module                  Size  Used by    Not tainted
arc4                    1948  2
rt2800usb              18891  0
rt2x00usb              12500  1 rt2800usb
rt2800lib              81727  1 rt2800usb
rt2x00lib              49205  3 rt2800usb,rt2x00usb,rt2800lib
mac80211              560278  3 rt2x00usb,rt2800lib,rt2x00lib
i2c_dev                 6657  0
cfg80211              474167  2 rt2x00lib,mac80211
rfkill                 22377  1 cfg80211
crc_ccitt               1612  1 rt2800lib
evdev                  10888  0
uio_pdrv_genirq         3646  0
uio                     9941  1 uio_pdrv_genirq
zram                   17412  1
lz4_decompress          2530  1 zram
lz4_compress            3177  1 zram

lsusb:
Code: [Select]
tc@box:~$ lsusb
Bus 001 Device 005: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Bus 001 Device 004: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

And here it is able to scan and connect:
Code: [Select]
Select Wifi Network

    ESSID                         Enc   Qual    Channel Type
 1. linksys                        on    70       6     WPA
 2. Steens 2.4GHz                  on    29       7     WPA

Enter selection ( 1 - 2 ) or (q)uit: 1
Enter password for linksys (8 to 63 characters): smiley
Enter password for linksys (8 to 63 characters): smiley12
Sending credentials to requested access point linksys..
udhcpc (v1.22.1) started
Sending discover...
Sending select for 192.168.1.12...
Lease of 192.168.1.12 obtained, lease time 604800
deleting routers
adding dns 193.162.153.164
adding dns 194.239.134.83
tc@box:~$


So something have changed between 6.1alpha1 and 6.1alpha2 for this wifi adaptor.

I haven't checked it on a raspbian yet.

Steen



Offline Gerrelt

  • Full Member
  • ***
  • Posts: 182
Re: piCore-6.1alpha2
« Reply #14 on: February 15, 2015, 05:40:29 AM »
Wait..don't try my fix yet...it needs another change. Testing as we type.
my Raspberry Pi page: http://raspberry.gerrelt.nl