WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: rebuilding tzc packages - problems  (Read 2641 times)

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
rebuilding tzc packages - problems
« on: April 06, 2014, 01:49:05 AM »
Hi bmarcus.

Somehow I'm having problems with rebuilding the packages like:
alsa-modules-3.14.0-piCore.tcz
wireless-3.14.0-piCore.tcz

Previously, I could build these packages without major problems, but now nothing seems to be working.

I have build piCore based on the 3.14.0 kernel. It boots fine and it loads the modules that I have not touched. So I can connect via putty using the standard dropbear SSH server. But as you know I need the ALSA and WiFi packages working as well.

I have unpacked the alsa-modules-3.13.6-piCore+.tcz
Then copied the files from the newly build 3.14.0 modules to the corresponding places in the unpacked 3.13.6 piCore Alsa package. Changed every instance of 3.13.6-piCore? to 3.14.0-piCore in the file and repacked.
There was one file which was present in the 3.13.6 package that I couldn't find in the 3.14.0 modules - that was snd-page-alloc.ko, but all other files were replaced with the newly build files.

Then I repacked, made an md5 file and tried to use it.

But no sound cards are available (not even the build in sound)

I did the same with the wireless-3.13.6.tcz but after rebuilding it with 3.14.0 modules nothing is working.

If I do lsmod nothing is loaded:
Code: [Select]
tc@piCorePlayer:~$ lsmod
Module                  Size  Used by    Not tainted
tc@piCorePlayer:~$

dmesg shows:
Code: [Select]
[    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=0xf bcm2708.serial=0x612ff62e smsc95xx.macaddr=B8:27:EB:2F:F6:2E sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  wc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 initrd=0xa00000,3412415 root=/dev/ram0 elevator=deadline rootwait nortc loglevel=3 waitusb=5
[    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: 443824K/458752K available (4953K kernel code, 255K rwdata, 1456K rodata, 160K init, 694K bss, 14928K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 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 - 0xc064a68c   (6410 kB)
[    0.000000]       .init : 0xc064b000 - 0xc0673264   ( 161 kB)
[    0.000000]       .data : 0xc0674000 - 0xc06b3d20   ( 256 kB)
[    0.000000]        .bss : 0xc06b3d2c - 0xc0761680   ( 695 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Dump stacks of tasks blocking RCU-preempt GP.
[    0.000000] NR_IRQS:330
[    0.000020] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483648000ns
[    0.000057] Switching to timer-based delay loop
[    0.000442] Console: colour dummy device 80x30
[    0.000628] console [tty1] enabled
[    0.100183] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.100212] pid_max: default: 32768 minimum: 301
[    0.100547] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100570] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.101309] Initializing cgroup subsys devices
[    0.101336] Initializing cgroup subsys freezer
[    0.101350] Initializing cgroup subsys net_cls
[    0.101362] Initializing cgroup subsys blkio
[    0.101439] CPU: Testing write buffer coherency: ok
[    0.101851] Setting up static identity map for 0x4b4e58 - 0x4b4e90
[    0.103873] devtmpfs: initialized
[    0.114791] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.115449] NET: Registered protocol family 16
[    0.120822] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.121450] cpuidle: using governor ladder
[    0.121471] cpuidle: using governor menu
[    0.122251] bcm2708.uart_clock = 0
[    0.123993] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.124012] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.124027] mailbox: Broadcom VideoCore Mailbox driver
[    0.124139] bcm2708_vcio: mailbox at f200b880
[    0.124237] bcm_power: Broadcom power driver
[    0.124255] bcm_power_open() -> 0
[    0.124266] bcm_power_request(0, 8)
[    0.624970] bcm_mailbox_read -> 00000080, 0
[    0.624987] bcm_power_request -> 0
[    0.625208] Serial: AMBA PL011 UART driver
[    0.625348] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    0.625682] console [ttyAMA0] enabled
[    0.656630] bio: create slab <bio-0> at 0
[    0.657855] SCSI subsystem initialized
[    0.658248] usbcore: registered new interface driver usbfs
[    0.658349] usbcore: registered new interface driver hub
[    0.658639] usbcore: registered new device driver usb
[    0.658816] media: Linux media interface: v0.10
[    0.658898] Linux video capture interface: v2.00
[    0.661158] Switched to clocksource stc
[    0.661550] FS-Cache: Loaded
[    0.661776] CacheFiles: Loaded
[    0.674770] NET: Registered protocol family 2
[    0.675857] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.675963] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.676039] TCP: Hash tables configured (established 4096 bind 4096)
[    0.676126] TCP: reno registered
[    0.676151] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.676183] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.676517] NET: Registered protocol family 1
[    0.677087] RPC: Registered named UNIX socket transport module.
[    0.677112] RPC: Registered udp transport module.
[    0.677122] RPC: Registered tcp transport module.
[    0.677131] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.677495] Trying to unpack rootfs image as initramfs...
[    1.175688] Freeing initrd memory: 3332K (c0a00000 - c0d41000)
[    1.199877] bcm2708_dma: DMA manager at f2007000
[    1.200028] bcm2708_gpio: bcm2708_gpio_probe c0682340
[    1.200438] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.201631] futex hash table entries: 256 (order: -1, 3072 bytes)
[    1.201895] audit: initializing netlink subsys (disabled)
[    1.201968] audit: type=2000 audit(1.200:1): initialized
[    1.350219] zbud: loaded
[    1.350570] VFS: Disk quotas dquot_6.5.2
[    1.350652] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.351040] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.351125] FS-Cache: Netfs 'nfs' registered for caching
[    1.351629] NFS: Registering the id_resolver key type
[    1.351733] Key type id_resolver registered
[    1.351749] Key type id_legacy registered
[    1.352106] msgmni has been set to 873
[    1.357299] Key type asymmetric registered
[    1.357327] Asymmetric key parser 'x509' registered
[    1.357456] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    1.357757] io scheduler noop registered
[    1.357781] io scheduler deadline registered (default)
[    1.357828] io scheduler cfq registered
[    1.363223] crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
[    1.363243] crc32: self tests passed, processed 225944 bytes in 2566000 nsec
[    1.365167] crc32c: CRC_LE_BITS = 64
[    1.365179] crc32c: self tests passed, processed 225944 bytes in 930000 nsec
[    2.169113] crc32_combine: 8373 self tests passed
[    2.975024] crc32c_combine: 8373 self tests passed
[    2.975425] BCM2708FB: allocated DMA memory 5ab40000
[    2.975480] BCM2708FB: allocated DMA channel 0 @ f2007000
[    3.000894] Console: switching to colour frame buffer device 160x64
[    3.111163] Serial: AMBA driver
[    3.111341] uart-pl011 dev:f1: no DMA platform data
[    3.111392] kgdb: Registered I/O driver kgdboc.
[    3.122198] brd: module loaded
[    3.128202] loop: module loaded
[    3.129584] nbd: registered device at major 43
[    3.140459] zram: Created 1 device(s) ...
[    3.140770] vchiq: vchiq_init_state: slot_zero = 0xdc804000, is_master = 0
[    3.141902] st: Version 20101219, fixed bufsize 32768, s/g segs 256
[    3.142084] osst :I: Tape driver with OnStream support version 0.99.4
[    3.142084] osst :I: $Id: osst.c,v 1.73 2005/01/01 21:13:34 wriede Exp $
[    3.143156] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated
[    3.143978] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[    3.145062] tun: Universal TUN/TAP device driver, 1.6
[    3.145090] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    3.145683] usbcore: registered new interface driver smsc95xx
[    3.145917] usbcore: registered new interface driver cdc_ncm
[    3.145940] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    3.346205] Core Release: 2.80a
[    3.346240] Setting default values for core params
[    3.346286] Finished setting default values for core params
[    3.546418] Using Buffer DMA mode
[    3.546446] Periodic Transfer Interrupt Enhancement - disabled
[    3.546458] Multiprocessor Interrupt Enhancement - disabled
[    3.546470] OTG VER PARAM: 0, OTG VER FLAG: 0
[    3.546487] Dedicated Tx FIFOs mode
[    3.546738] WARN::dwc_otg_hcd_init:1040: FIQ DMA bounce buffers: virt = 0xdcc27000 dma = 0x5aba8000 len=9024
[    3.546765] dwc_otg: Microframe scheduler enabled
[    3.546806] WARN::hcd_init:473: FIQ at 0xc03329a8
[    3.546821] WARN::hcd_init:474: FIQ ASM at 0xc0332a88 length 36
[    3.546851] WARN::hcd_init:500: MPHI regs_base at 0xdcc1c000
[    3.546885] dwc_otg bcm2708_usb: DWC OTG Controller
[    3.546941] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    3.546998] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    3.547034] Init: Port Power? op_state=1
[    3.547045] Init: Power Port (0)
[    3.547346] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.547370] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.547387] usb usb1: Product: DWC OTG Controller
[    3.547403] usb usb1: Manufacturer: Linux 3.14.0-piCore dwc_otg_hcd
[    3.547418] usb usb1: SerialNumber: bcm2708_usb
[    3.548272] hub 1-0:1.0: USB hub found
[    3.548361] hub 1-0:1.0: 1 port detected
[    3.548841] dwc_otg: FIQ enabled
[    3.548859] dwc_otg: NAK holdoff enabled
[    3.548869] dwc_otg: FIQ split-transaction FSM disabled
[    3.548892] Module dwc_common_port init
[    3.549373] usbcore: registered new interface driver usb-storage
[    3.549967] mousedev: PS/2 mouse device common for all mice
[    3.550705] i2c /dev entries driver
[    3.550868] bcm2708_i2c_init_pinmode(0,0)
[    3.550885] bcm2708_i2c_init_pinmode(0,1)
[    3.551478] bcm2708_i2c bcm2708_i2c.0: BSC0 Controller at 0x20205000 (irq 79) (baudrate 100k)
[    3.551550] bcm2708_i2c_init_pinmode(1,2)
[    3.551566] bcm2708_i2c_init_pinmode(1,3)
[    3.552152] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100k)
[    3.553813] : bcm2835-v4l2: error -1 while loading driver
[    3.554716] bcm2708 watchdog, heartbeat=10 sec (nowayout=0)
[    3.554970] bcm2835-cpufreq: min=700000 max=900000 cur=700000
[    3.555152] bcm2835-cpufreq: switching to governor performance
[    3.555173] bcm2835-cpufreq: switching to governor performance
[    3.556499] sdhci: Secure Digital Host Controller Interface driver
[    3.556513] sdhci: Copyright(c) Pierre Ossman
[    3.556584] sdhci: Enable low-latency mode
[    3.601226] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[    3.601369] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    3.601559] usbcore: registered new interface driver ushc
[    3.601573] sdhci-pltfm: SDHCI platform and OF driver helper
[    3.608180] hidraw: raw HID events driver (C) Jiri Kosina
[    3.611851] usbcore: registered new interface driver usbhid
[    3.611871] usbhid: USB HID core driver
[    3.612272] ipip: IPv4 over IPv4 tunneling driver
[    3.612994] TCP: cubic registered
[    3.613013] Initializing XFRM netlink socket
[    3.613053] NET: Registered protocol family 17
[    3.613152] 8021q: 802.1Q VLAN Support v1.8
[    3.613266] Key type dns_resolver registered
[    3.616865] registered taskstats version 1
[    3.621687] console [netcon0] enabled
[    3.623827] netconsole: network logging started
[    3.629989] Freeing unused kernel memory: 160K (c064b000 - c0673000)
[    3.664313] mmc0: new high speed SDHC card at address b368
[    3.667890] mmcblk0: mmc0:b368 SMI   3.75 GiB
[    3.669657]  mmcblk0: p1 p2
[    3.741488] Indeed it is in host mode hprt0 = 00021501
[    3.971535] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    3.971728] Indeed it is in host mode hprt0 = 00001101
[    4.251664] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    4.251693] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.252526] hub 1-1:1.0: USB hub found
[    4.252662] hub 1-1:1.0: 3 ports detected
[    4.531462] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    4.631677] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    4.631708] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.634735] smsc95xx v1.0.4
[    4.695966] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:2f:f6:2e
[    4.791491] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    4.902031] usb 1-1.2: config 1 interface 0 altsetting 0 has 7 endpoint descriptors, different from the interface descriptor's value: 5
[    4.909545] usb 1-1.2: New USB device found, idVendor=148f, idProduct=5370
[    4.909576] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.909591] usb 1-1.2: Product: 802.11 n WLAN
[    4.909603] usb 1-1.2: Manufacturer: Ralink
[    4.909614] usb 1-1.2: SerialNumber: 1.0
[    9.251550] random: mkswap urandom read with 27 bits of entropy available
[    9.264526] Adding 106628k swap on /dev/zram0.  Priority:-1 extents:1 across:106628k SSFS
[   11.942005] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   12.094226] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[   14.151781] random: nonblocking pool is initialized
[   28.743526] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   30.218642] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1

Do you have an idea?
I noticed in a previous post that you mentioned something about the power saving in a wifi module in the 3.14 kernel. Have you tried building piCore on the 3.14.0 kernel?

Steen


Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: rebuilding tzc packages - problems
« Reply #1 on: April 06, 2014, 02:09:27 AM »
I will check.
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: rebuilding tzc packages - problems
« Reply #2 on: April 06, 2014, 12:12:07 PM »
As I do not have your TCZ can't tell what is wrong. One possible reason is that modul directory 3.13.6-piCore+ not renamed to 3.14.0-piCore+ so kernel do not see them.

I built piCore-5.3alpha1 with 3.14.0 kernel. After startup:

Code: [Select]
tc@box:~$ uname -a
Linux box 3.14.0-piCore+ #1 PREEMPT Sun Apr 6 19:53:00 CEST 2014 armv6l GNU/Linu                                          x
tc@box:~$ lsmod
Module                  Size  Used by    Not tainted
snd_soc_pcm512x         8972  0
snd_soc_wm8804          7755  0
snd_soc_bcm2708_i2s     5653  0
snd_soc_core          120697  3 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_bcm2708_i                                          2s
snd_pcm_dmaengine       4454  1 snd_soc_core
snd_pcm                78325  2 snd_soc_core,snd_pcm_dmaengine
snd_timer              19923  1 snd_pcm
snd_compress            7815  1 snd_soc_core
snd                    56351  4 snd_soc_core,snd_pcm,snd_timer,snd_compress
regmap_i2c              1534  3 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_core
regmap_spi              1786  3 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_core
regmap_mmio             2669  1 snd_soc_bcm2708_i2s

As you see, modul for built in sound device not loaded. Do it manually:

Code: [Select]
# modprobe snd-bcm2835.ko.gz
# lsmod
Module                  Size  Used by    Not tainted
snd_bcm2835            18211  0
snd_soc_pcm512x         8972  0
snd_soc_wm8804          7755  0
snd_soc_bcm2708_i2s     5653  0
snd_soc_core          120697  3 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_bcm2708_i2s
snd_pcm_dmaengine       4454  1 snd_soc_core
snd_pcm                78325  3 snd_bcm2835,snd_soc_core,snd_pcm_dmaengine
snd_timer              19923  1 snd_pcm
snd_compress            7815  1 snd_soc_core
snd                    56351  5 snd_bcm2835,snd_soc_core,snd_pcm,snd_timer,snd_compress
regmap_i2c              1534  3 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_core
regmap_spi              1786  3 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_core
regmap_mmio             2669  1 snd_soc_bcm2708_i2s

Check cards:

Code: [Select]
# cat /proc/asound/cards
 0 [ALSA           ]: bcm2835 - bcm2835 ALSA
                      bcm2835 ALSA

It works, plays sound as expected.

You can wait a bit, in few days I will release piCore-5.3alpha1.
« Last Edit: April 06, 2014, 12:22:41 PM by bmarkus »
Béla
Ham Radio callsign: HA5DI

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

Offline sbp

  • Sr. Member
  • ****
  • Posts: 429
    • piCorePlayer homepage
Re: rebuilding tzc packages - problems
« Reply #3 on: April 06, 2014, 01:12:32 PM »
Thanks for testing, then I know it is possible, and will try again.

I'm also looking forward to your build, but I would really like to be able to make my own build, so I don't have to disturb you all the time.

Steen

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: rebuilding tzc packages - problems
« Reply #4 on: April 06, 2014, 01:27:00 PM »
Thanks for testing, then I know it is possible, and will try again.

I'm also looking forward to your build, but I would really like to be able to make my own build, so I don't have to disturb you all the time.

Steen

Of course you are free to build your version :) but you contribution is highly appreciated to piCore main line specially on the audio and wirless side.
Béla
Ham Radio callsign: HA5DI

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