2014-10-27

Slitaz -- linux64: update src var

linux64: update src var

1.
wok changeset 17276:19630aaa1da0
http://hg.slitaz.org/wok/rev/19630aaa1da0
28 hours ago Pascal Bellard linux: update linux-slitaz.config64 (again)
28 hours ago Pascal Bellard linux: update linux-slitaz.config64
45 hours ago Pascal Bellard linux64-*: update src var (for list_modules.sh)
45 hours ago Pascal Bellard linux64: update src var
2 days ago Pascal Bellard Add dex2jar
2 days ago Pascal Bellard linux64: update module list
2 days ago Richard Dunbar tazwikiss: tiny edit
2 days ago Pascal Bellard linux: update config64


2.
# HG changeset patch
# User Pascal Bellard
# Date 1414250046 -7200
# Node ID 19630aaa1da0500db484b23cae74756f817a3597
# Parent 6177579905a3207cab336635ef20f641bbdf246b
linux64: update src var

diff -r 6177579905a3 -r 19630aaa1da0 linux64/receipt
--- a/linux64/receipt Sat Oct 25 14:15:16 2014 +0200
+++ b/linux64/receipt Sat Oct 25 17:14:06 2014 +0200
@@ -20,6 +20,7 @@
{
local path
install=$install/linux64
+ src=$WOK/$PACKAGE/source/tmp
cp -a $install/boot $fs
path=$fs/lib/modules/$VERSION-slitaz64/kernel
mkdir -p $path



3.
Package : linux
Cook summary
http://cook.slitaz.org/cooker.cgi?pkg=linux

--
Summary for: linux64 3.2.53
================================================================================
Source dir  : 20.0K
Packed      : 8.9M
Compressed  : 6.1M
Files       : 303
Cook time   : 39s ~ 1m
Cook date   : 2014-10-26 12:29
Host arch   : i486
================================================================================
Leaving aufs chroot...
--
Summary for: linux 3.2.53
================================================================================
Source dir  : 1.0G
Src file    : linux-3.2.53.tar.xz
Src size    : 62.6M
Produced    : 83.8M
Packed      : 7.1M
Compressed  : 5.8M
Files       : 337
Cook time   : 15088s ~ 251m
Cook date   : 2014-10-26 12:30
Host arch   : i486
================================================================================

Slitaz -- slitaz-rolling-10in1.iso 2014-Oct-26

slitaz-rolling-10in1.iso    2014-Oct-26 12:10:00 51.6M

1.
tux@slitaz:~$ uname -a
Linux slitaz 3.2.53-slitaz64 #2 SMP Sun Oct 26 09:30:52 Europe 2014 x86_64 GNU/Linux


2.
tux@slitaz:~$ lsmod<pre>
Module                  Size  Used by    Not tainted
ipv6                  226737 14
ppdev                   4870  0
parport_pc             17746  0
floppy                 49295  0
parport                26951  2 ppdev,parport_pc
e1000                  86198  0
button                  4167  0 </pre>


3.
tux@slitaz:~$ nslookup www.slitaz.org
Server:    10.0.2.3
Address 1: 10.0.2.3

Name:      www.slitaz.org
Address 1: 212.83.135.187 pangolin.slitaz-fr.org


4.
tux@slitaz:~$ modinfo e1000
filename:       /lib/modules/3.2.53-slitaz64/kernel/drivers/net/ethernet/intel/e1000/e1000.ko.xz
version:        7.3.21-k8-NAPI
license:        GPL
description:    Intel(R) PRO/1000 Network Driver
author:         Intel Corporation, <linux.nics@intel.com>
srcversion:     51E8CE1B843BD32D67B14EB
alias:          pci:v00008086d00002E6Esv*sd*bc*sc*i*
[..]

alias:          pci:v00008086d00001000sv*sd*bc*sc*i*
depends:       
intree:         Y
vermagic:       3.2.53-slitaz64 SMP mod_unload
parm:           TxDescriptors:Number of transmit descriptors (array of int)
parm:           RxDescriptors:Number of receive descriptors (array of int)
parm:           Speed:Speed setting (array of int)
parm:           Duplex:Duplex setting (array of int)
parm:           AutoNeg:Advertised auto-negotiation setting (array of int)
parm:           FlowControl:Flow Control setting (array of int)
parm:           XsumRX:Disable or enable Receive Checksum offload (array of int)
parm:           TxIntDelay:Transmit Interrupt Delay (array of int)
parm:           TxAbsIntDelay:Transmit Absolute Interrupt Delay (array of int)
parm:           RxIntDelay:Receive Interrupt Delay (array of int)
parm:           RxAbsIntDelay:Receive Absolute Interrupt Delay (array of int)
parm:           InterruptThrottleRate:Interrupt Throttling Rate (array of int)
parm:           SmartPowerDownEnable:Enable PHY smart power down (array of int)
parm:           copybreak:Maximum size of packet that is copied to a new buffer on receive (uint)
parm:           debug:Debug level (0=none,...,16=all) (int)


5.
tux@slitaz:~$ busybox modprobe -l | wc -l
591


6.
tux@slitaz:~$ slitaz

SliTaz GNU/Linux
================================================================================
Release      : 5.0
Architecture : i486
Kernel       : 3.2.53-slitaz64
Machine type : x86_64
Home path    : /home/slitaz
Configs      : /etc/slitaz
Main config  : /etc/slitaz/slitaz.conf
Log files    : /var/log/slitaz
Packages DB  : /var/lib/tazpkg
Installed    : 235 packages
Mirror       : http://mirror.slitaz.org/packages/cooking/
System date  : Mon Oct 27 20:48:48 UTC 2014
--------------
Boot options : BOOT_IMAGE=/boot/bzImage initrd=/boot/rootfs4.gz,/boot/rootfs4l.gz,/boot/rootfs3.gz,/boot/rootfs3l.gz,/boot/rootfs2.gz,/boot/rootfs2l.gz,/boot/rootfs1.gz rw root=/dev/null autologin lang=en_US kmap=us
================================================================================

2014-10-24

Slitaz -- update config64

linux: update config64

1.
wok changeset 17268:0d2eae483216 tip
linux: update config64
http://hg.slitaz.org/wok/rev/0d2eae483216
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 23 19:09:03 2014 +0200 (14 hours ago ago)
parents b9fafbaeb4c6
children
files linux/stuff/linux-slitaz.config linux/stuff/linux-slitaz.config64


2.
tux@slitaz:~$ uname -a
Linux slitaz 3.2.53-slitaz64 #2 SMP Thu Oct 23 19:13:12 Europe 2014 x86_64 GNU/Linux


3.
tux@slitaz:~$ lsmod
Module                  Size  Used by    Not tainted
ipv6                  226737 22 
i915                  310726  2 
video                  11362  1 i915
i2c_algo_bit            4368  1 i915
drm_kms_helper         21202  1 i915
drm                   154213  2 i915,drm_kms_helper
intel_agp              10400  1 i915
i2c_core               15927  4 i915,i2c_algo_bit,drm_kms_helper,drm
wmi                     7235  0 
intel_gtt              11831  3 i915,intel_agp
agpgart                22932  3 drm,intel_agp,intel_gtt
button                  4167  1 i915
sky2                   43332  0 
snd_hda_codec_idt      47244  1 
snd_hda_intel          20389  4 
snd_hda_codec          56353  2 snd_hda_codec_idt,snd_hda_intel
snd_hwdep               5117  1 snd_hda_codec
snd_pcm                57218  3 snd_hda_intel,snd_hda_codec
snd_page_alloc          5929  2 snd_hda_intel,snd_pcm
snd_timer              15484  2 snd_pcm
snd                    47500 12 snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
soundcore               4449  1 snd


4.
tux@slitaz:~$ modinfo sky2
filename: /lib/modules/3.2.53-slitaz64/kernel/drivers/net/ethernet/marvell/sky2.ko.xz
version: 1.30
license: GPL
author: Stephen Hemminger <shemminger@linux-foundation.org>
description: Marvell Yukon 2 Gigabit Ethernet driver
srcversion: 5DDAC670BE11093F69B7FFC
alias: pci:v000011ABd00004381sv*sd*bc*sc*i*
[..]
alias: pci:v00001148d00009E00sv*sd*bc*sc*i*
alias: pci:v00001148d00009000sv*sd*bc*sc*i*
depends:
intree: Y
vermagic: 3.2.53-slitaz64 SMP mod_unload
parm: debug:Debug level (0=none,...,16=all) (int)
parm: copybreak:Receive copy threshold (int)
parm: disable_msi:Disable Message Signaled Interrupt (MSI) (int)
parm: legacy_pme:Legacy power management (int)


5.
tux@slitaz:~$ sudo lspci -v | grep -A 15 Ether
02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8057 PCI-E Gigabit Ethernet Controller (rev 10)
Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Device 4001
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at febfc000 (64-bit, non-prefetchable) [size=16K]
I/O ports at e800 [size=256]
Expansion ROM at febc0000 [disabled] [size=128K]
Capabilities: [48] Power Management version 3
Capabilities: [5c] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [c0] Express Legacy Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [130] Device Serial Number fe-9e-bf-ff-xx-xx-xx-xx
Kernel driver in use: sky2


6.
tux@slitaz:~$ dmesg | grep eth
sky2 0000:02:00.0: eth0: addr 00:30:1b:xx:xx:xx
sky2 0000:02:00.0: eth0: enabling interface
ADDRCONF(NETDEV_UP): eth0: link is not ready
sky2 0000:02:00.0: eth0: Link is up at 1000 Mbps, full duplex, flow control both
ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
eth0: no IPv6 routers present
tux@slitaz:~$

2014-09-14

Slitaz -- linux64-3.2.53 VS linux-3.2.53


linux64-3.2.53 VS. linux-3.2.53
6. linux64/files.list
tux@slitaz:~$ cat /var/lib/tazpkg/installed/linux64/files.list
/boot/vmlinuz-3.2.53-slitaz64
[..]
/lib/modules/3.2.53-slitaz64/modules.devname
/lib/modules/3.2.53-slitaz64/kernel/drivers/char/rtc.ko.xz
/lib/modules/3.2.53-slitaz64/kernel/drivers/char/genrtc.ko.xz
/lib/modules/3.2.53-slitaz64/kernel/drivers/ide/ide-cs.ko.xz
/lib/modules/3.2.53-slitaz64/kernel/lib/libcrc32c.ko.xz
/lib/modules/3.2.53-slitaz64/modules.builtin

1. linux64-3.2.53 and linux-3.2.53 diff ~36 kernel modules
tux@slitaz:~$ calc 337-301
36

should be diff 330 kernel modules
tux@slitaz:~$ calc 334-4
330


1. slitaz-rolling-core64.iso 07-Sep-2014
tux@slitaz:~$ uname -a
Linux slitaz 3.2.53-slitaz64 #2 SMP Tue Aug 19 07:22:20 Europe 2014 x86_64 GNU/Linux

tux@slitaz:~$ busybox modprobe -l | wc -l
301

It includes linux64, linux64-agp, linux64-crypto, linux64-drm, linux64-sound and linux64-wireless.

tux@slitaz:~$ tazpkg list | grep linux64
linux64                            3.2.53            base-system
linux64-agp                        3.2.53            base-system
linux64-crypto                     3.2.53            base-system
linux64-drm                        3.2.53            base-system
linux64-sound                      3.2.53            base-system
linux64-wireless                   3.2.53            base-system


2.
tux@slitaz:~$ tazpkg extract linux-3.2.53.tazpkg /tmp

tux@slitaz:~$ grep ko.xz /tmp/linux-3.2.53/files.list | wc -l
334

tux@slitaz:~$ grep ko.xz /var/lib/tazpkg/installed/linux64/files.list | wc -l
4

tux@slitaz:~$ grep ko.xz /var/lib/tazpkg/installed/linux64-agp/files.list | wc -l
5

tux@slitaz:~$ grep ko.xz /var/lib/tazpkg/installed/linux64-crypto/files.list | wc -l
49

tux@slitaz:~$ grep ko.xz /var/lib/tazpkg/installed/linux64-drm/files.list | wc -l
14

tux@slitaz:~$ grep ko.xz /var/lib/tazpkg/installed/linux64-sound/files.list | wc -l
129

tux@slitaz:~$ grep ko.xz /var/lib/tazpkg/installed/linux64-wireless/files.list | wc -l
101

tux@slitaz:~$ calc 301-4-5-49-14-129-101
-1

tux@slitaz:~$


3. duplicate module: rtc.ko.xz
tux@slitaz:~$ grep rtc.ko /var/lib/tazpkg/installed/linux64/files.list
/lib/modules/3.2.53-slitaz64/kernel/drivers/char/rtc.ko.xz
/lib/modules/3.2.53-slitaz64/kernel/drivers/char/genrtc.ko.xz

tux@slitaz:~$ grep rtc.ko /var/lib/tazpkg/installed/linux64-sound/files.list
/lib/modules/3.2.53-slitaz64/kernel/drivers/char/rtc.ko.xz
tux@slitaz:~$

2014-09-05

Slitaz -- slitaz-rolling-core64 / i915


8. Cook summary
http://cook.slitaz.org/cooker.cgi?pkg=linux
Summary for: linux64 3.2.53
Files : 16
Summary for: linux 3.2.53
Files : 337
Cook date : 2014-08-19 10:18
slitaz-rolling-core64.iso 2014-Aug-24 03:30:12
http://alanyih.blogspot.tw/2014/08/slitaz-slitaz-rolling-core64-20140824.html
1.
tux@slitaz:~$ busybox modprobe -l | wc -l
301

1. linux64-3.2.53 and linux-3.2.53 diff ~36  330 kernel modules
tux@slitaz:~$ calc 337-301 334-4
36  300

Ref: http://alanyih.blogspot.tw/2014/09/slitaz-linux64-3253-vs-linux-3253.html


2. i915 depends
tux@slitaz:~$ modinfo i915 | grep depends
depends: drm,drm_kms_helper,intel-gtt,i2c-core,video,button,i2c-algo-bit,intel-agp


3. Module drm,i2c-core,video,button... not found
tux@slitaz:~$ modinfo drm
modinfo: ERROR: Module drm not found.

tux@slitaz:~$ modinfo drm_kms_helper
modinfo: ERROR: Module drm_kms_helper not found.

tux@slitaz:~$ modinfo i2c-core
modinfo: ERROR: Module i2c-core not found.

tux@slitaz:~$ modinfo i2c-algo-bit
modinfo: ERROR: Module i2c-algo-bit not found.

tux@slitaz:~$ modinfo video
modinfo: ERROR: Module video not found.

tux@slitaz:~$ modinfo button
modinfo: ERROR: Module button not found.
tux@slitaz:~$

2014-08-28

Slitaz -- slitaz-rolling-core64 (20140824)

slitaz-rolling-core64.iso 2014-Aug-24 03:30:12

No net/ethernet modules?

4. eth0: No such device
tux@slitaz:~$ grep -A 5 network /var/log/boot.log
[..]
ifconfig: SIOCGIFFLAGS: No such device
Starting udhcpc client on: eth0...
udhcpc: SIOCGIFINDEX: No such device
5. linux64-3.2.53
tux@slitaz:~$ ls -l /lib/modules/3.2.53-slitaz64/kernel/drivers/net
total 0
drwxr-xr-x 23 root root 700 Aug 19 10:56 wireless

1.
tux@slitaz:~$ busybox modprobe -l | wc -l
301

tux@slitaz:~$ busybox modprobe -l | grep ethernet
tux@slitaz:~$ busybox modprobe -l | grep phy
tux@slitaz:~$


2. only linux-wireless modules
tux@slitaz:~$ ls -l /lib/modules/3.2.53-slitaz64/kernel/drivers/net/
total 0
drwxr-sr-x 23 root users 700 Aug 22 07:04 wireless


3. modules64.list
http://cook.slitaz.org/cooker.cgi?stuff=linux64/stuff/modules64.list
[..]
drivers/net/ethernet/3com/3c574_cs.ko.xz
drivers/net/ethernet/3com/3c589_cs.ko.xz
drivers/net/ethernet/8390/axnet_cs.ko.xz
drivers/net/arcnet/arcnet.ko.xz
drivers/net/arcnet/com20020.ko.xz
drivers/net/arcnet/com20020_cs.ko.xz
drivers/net/ethernet/fujitsu/fmvj18x_cs.ko.xz
drivers/net/ethernet/amd/nmclan_cs.ko.xz
drivers/net/ethernet/8390/pcnet_cs.ko.xz
drivers/net/ethernet/smsc/smc91c92_cs.ko.xz
drivers/net/ethernet/xircom/xirc2ps_cs.ko.xz
drivers/net/phy/broadcom.ko.xz
drivers/net/phy/cicada.ko.xz
drivers/net/phy/davicom.ko.xz
drivers/net/phy/libphy.ko.xz
drivers/net/phy/lxt.ko.xz
drivers/net/phy/marvell.ko.xz
drivers/net/phy/qsemi.ko.xz
drivers/net/phy/smsc.ko.xz
drivers/net/ethernet/dnet.ko.xz
drivers/net/ethernet/silan/sc92031.ko.xz
drivers/net/ethernet/sis/sis190.ko.xz
drivers/net/ethernet/marvell/skge.ko.xz
drivers/net/ethernet/marvell/sky2.ko.xz
drivers/net/ethernet/adaptec/starfire.ko.xz
drivers/net/ethernet/sun/sungem.ko.xz
drivers/net/sungem_phy.ko.xz
drivers/net/ethernet/sun/sunhme.ko.xz
drivers/net/ethernet/broadcom/tg3.ko.xz
drivers/net/ethernet/dec/tulip/tulip.ko.xz
drivers/net/ethernet/dec/tulip/uli526x.ko.xz
drivers/net/ethernet/3com/typhoon.ko.xz
drivers/net/usb/asix.ko.xz
drivers/net/usb/cdc_ether.ko.xz
drivers/net/usb/cdc_subset.ko.xz
drivers/net/usb/net1080.ko.xz
[..]

2014-08-25

Slitaz -- SliTaz 10in1 32/64


SliTaz 10in1 32/64

slitaz-rolling-10in1.iso 2014-Aug-22 10:05:29 49.0M

UUID="2014-08-22-10-04-14-00" LABEL="SliTaz 10in1 32/64"
TYPE="iso9660" PTUUID="fdebf4f6" PTTYPE="dos"

1.
tux@slitaz:~$ ls -l /media/cdrom/boot
total 54803
-rw-r--r-- 2 root root 2902480 Aug 19 09:17 bzImage
-rw-r--r-- 2 root root 2927072 Aug 21 09:59 bzImage64
drwxr-xr-x 2 root root 2048 Aug 19 14:34 grub
-rw-r--r-- 1 root root 364252 May 10 07:49 ipxe
drwxr-xr-x 2 root root 2048 Aug 22 07:27 isolinux
-rw-r--r-- 1 root root 45272 May 7 15:25 memtest
-rw-r--r-- 1 root root 10364820 Aug 19 14:48 rootfs1.gz
-rw-r--r-- 1 root root 7061576 Aug 21 11:13 rootfs2.gz
-rw-r--r-- 1 root root 4099597 Aug 21 10:55 rootfs2l.gz
-rw-r--r-- 1 root root 3995170 Aug 22 07:14 rootfs2l.gz64
-rw-r--r-- 1 root root 8712794 Aug 21 10:17 rootfs3.gz
-rw-r--r-- 1 root root 788469 Aug 21 10:15 rootfs3l.gz
-rw-r--r-- 1 root root 753376 Aug 22 07:14 rootfs3l.gz64
-rw-r--r-- 1 root root 4937387 Aug 21 10:15 rootfs4.gz
-rw-r--r-- 1 root root 3141885 Aug 21 10:15 rootfs4l.gz
-rw-r--r-- 1 root root 29916 Aug 22 07:14 rootfs4l.gz64
-rw-r--r-- 1 root root 156413 Aug 22 07:21 rootfs5.gz
-rw-r--r-- 2 root root 2902480 Aug 19 09:17 vmlinuz-3.2.53-slitaz
-rw-r--r-- 2 root root 2927072 Aug 21 09:59 vmlinuz-3.2.53-slitaz64
tux@slitaz:~$


2.
tux@slitaz:~$ slitaz
SliTaz GNU/Linux
================================================================================
Release      : 5.0
Architecture : i486
Kernel       : 3.2.53-slitaz64
Machine type : x86_64
Home path    : /home/slitaz
Configs      : /etc/slitaz
Main config  : /etc/slitaz/slitaz.conf
Log files    : /var/log/slitaz
Packages DB  : /var/lib/tazpkg
Installed    : 235 packages
Mirror       : http://mirror.slitaz.org/packages/cooking/
System date  : Mon Aug 23 11:42:32 UTC 2014
--------------
Boot options : BOOT_IMAGE=/boot/bzImage initrd=/boot/rootfs4.gz,/boot/rootfs4l.gz,
/boot/rootfs3.gz,/boot/rootfs3l.gz,/boot/rootfs2.gz,/boot/rootfs2l.gz,/boot/rootfs1.gz
 rw root=/dev/null autologin lang=en_US kmap=us
================================================================================

tux@slitaz:~$ 


3.

47 hours ago Pascal Bellard syslinux/c32box: x86_64 auto select (again)
47 hours ago Pascal Bellard syslinux/c32box: x86_64 auto select (again)
2 days ago Xander Ziiryanoff fix qt
2 days ago Pascal Bellard syslinux/c32box: x86_64 auto select (again)
2 days ago Pascal Bellard syslinux/c32box: x86_64 auto select

wok changeset 17057:5e47b1bdb6f4

syslinux/c32box: x86_64 auto select
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 21 09:56:57 2014 +0200 (2 days ago ago)
parents 6dd4a6865e2e
children d5b427eca7f3
files syslinux/stuff/extra/md5sum.c



    1.69 +static char *bestextfilename(char *filename)
    1.70 +{
    1.71 +	char *found;
    1.72 +
    1.73 +	//found = extfilename(filename, "fpu",   X86_FEATURE_FPU);
    1.74 +	//found = extfilename(filename, "686",   X86_FEATURE_CMOV);
    1.75 +	//found = extfilename(filename, "pae",   X86_FEATURE_PAE);
    1.76 +	found = extfilename(filename, "64",    X86_FEATURE_LM);
    1.77 +	//found = extfilename(filename, "guest", X86_FEATURE_HYPERVISOR);
    1.78 +	return found;
    1.79 +}
    1.80 
 
 

2014-08-20

Slitaz -- linux-freeinitrd.u



linux: fix linux64 initramfs load

tux@slitaz:~$ dmesg | grep -A 5 initramfs
Trying to unpack rootfs image as initramfs...
....................................
Freeing initrd memory: 52k freed
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Placing 64MB software IO TLB between ffff8800c748e000 - ffff8800cb48e000
software IO TLB at phys 0xc748e000 - 0xcb48e000

1.
wok log linux/stuff/linux-freeinitrd.u (0) tip
http://hg.slitaz.org/wok/log/08f5bc0133f6/linux/stuff/linux-freeinitrd.u

age                  author                    description
2 days ago      Pascal Bellard          linux: fix linux64 initramfs load
8 months ago Pascal Bellard          Up linux (3.2.53) again...
2012-04-15    Christophe Lincoln   Up: linux (3.2.14) Let play with the kernel :-)


2.

wok log

http://hg.slitaz.org/wok/

age author description
4 hours ago Christophe Lincoln Up: firefox-official (31.0)default tip
10 hours ago Pascal Bellard Add paulstretch
10 hours ago Pascal Bellard Add mxml
12 hours ago Aleksej Bobylev tramys: oh, I forgot to restore the most important thing ;)
15 hours ago Pascal Bellard slitaz-configs-base: /home may not exist (cookiso case)
16 hours ago Aleksej Bobylev Add tramys
19 hours ago Pascal Bellard Add linux-exofs
29 hours ago Pascal Bellard linux: enable rtcwake
29 hours ago Pascal Bellard linux: fix linux64 initramfs load
29 hours ago Pascal Bellard linux: fix list_modules.sh (thanks aleksej)
41 hours ago Aleksej Bobylev slitaz-configs-base: use chroot in post_install()
2 days ago Xander Ziiryanoff slitaz-configs-base: check for /etc/skel while update ~/.xinitrc
2 days ago Pascal Bellard Add mfstool
2 days ago Pascal Bellard linux64: new module path (again)
2 days ago Pascal Bellard linux64: new module path (again)
3 days ago Pascal Bellard linux64: new module path (again)
3 days ago Pascal Bellard linux64: new module path (again)
3 days ago Pascal Bellard linux64: new module path (again)
3 days ago Pascal Bellard linux64: new module path



3.

wok changeset 17037:08f5bc0133f6

linux: fix linux64 initramfs load
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 18 23:02:00 2014 +0200 (29 hours ago ago)
parents 2dd00d63b1d6
children de89db694ed0
files linux/stuff/linux-freeinitrd.u 
# HG changeset patch
# User Pascal Bellard <pascal.bellard@slitaz.org>
# Date 1408395720 -7200
# Node ID 08f5bc0133f6276e5ff1421ae2fcb7f555884496
# Parent  2dd00d63b1d6567ea6fd7942f6f175e7bd8b8c60
linux: fix linux64 initramfs load

diff -r 2dd00d63b1d6 -r 08f5bc0133f6 linux/stuff/linux-freeinitrd.u
--- a/linux/stuff/linux-freeinitrd.u Mon Aug 18 23:00:41 2014 +0200
+++ b/linux/stuff/linux-freeinitrd.u Mon Aug 18 23:02:00 2014 +0200
@@ -5,7 +5,7 @@
   set_memory_rw(begin, (end - begin) >> PAGE_SHIFT);
  
 - printk(KERN_INFO "Freeing %s: %luk freed\n", what, (end - begin) >> 10);
-+ if (what) printk(KERN_INFO "Freeing %s: %luk freed\n", what, (end - begin) >> 10);
++ if (what && *what) printk(KERN_INFO "Freeing %s: %luk freed\n", what, (end - begin) >> 10);
  
   for (; addr < end; addr += PAGE_SIZE) {
    ClearPageReserved(virt_to_page(addr));
@@ -22,22 +22,22 @@
 +
 +static void free_rootfs_mem(unsigned long start, unsigned long end)
 +{
-+ free_init_pages(NULL, start, end);
++ free_init_pages("", start, end);
 +}
 +
 +static void _free_initrd(unsigned long initrd_start, unsigned long initrd_end, 
 +    void (*free_initrd_mem)(unsigned long, unsigned long));
 +
 +static struct {
-+ int offset, last, inptr, freed;
++ unsigned long offset, last, inptr, freed;
 + char *max;
 +} fill;
 +
 +static void release_inbuf(unsigned n)
 +{
 + if (n >= INITRD_PAGE) {
-+  unsigned rem = n % INITRD_PAGE;
-+  unsigned end = initrd_start + n - rem;
++  unsigned long rem = n % INITRD_PAGE;
++  unsigned long end = initrd_start + n - rem;
 +  _free_initrd(initrd_start, end, free_rootfs_mem);
 +  fill.freed += n - rem;
 +  if (fill.freed >= INITRD_DOT) {
@@ -49,9 +49,9 @@
 + }
 +}
 +
-+static int fill_buffer(void *buffer, unsigned size)
++static unsigned long fill_buffer(void *buffer, unsigned size)
 +{
-+ int max =  fill.max - (char *) initrd_start - fill.offset;
++ unsigned long max =  fill.max - (char *) initrd_start - fill.offset;
 + if (max > size) max = size;
 + if (max > INITRD_PAGE) max = INITRD_PAGE;
 + memcpy(buffer, (void *)(initrd_start + fill.offset), max);
 


4.

wok changeset 17027:5803f5a52a59

linux64: new module path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 16 14:43:53 2014 +0200 (6 days ago ago)
parents 8a3c0ff3e79a
children 889f25f00105
files linux/stuff/linux-slitaz.config64

# HG changeset patch
# User Pascal Bellard <pascal.bellard@slitaz.org>
# Date 1408193033 -7200
# Node ID 5803f5a52a5967a3b17fae6f8189027c57bd8343
# Parent  8a3c0ff3e79ac00ea6b4df6067367250cd74eaf7
linux64: new module path

diff -r 8a3c0ff3e79a -r 5803f5a52a59 linux/stuff/linux-slitaz.config64
--- a/linux/stuff/linux-slitaz.config64 Sat Aug 16 00:15:04 2014 +0200
+++ b/linux/stuff/linux-slitaz.config64 Sat Aug 16 14:43:53 2014 +0200
@@ -61,7 +61,7 @@
 CONFIG_EXPERIMENTAL=y
 CONFIG_INIT_ENV_ARG_LIMIT=32
 CONFIG_CROSS_COMPILE="uclibc-x86_64-"
-CONFIG_LOCALVERSION="-slitaz"
+CONFIG_LOCALVERSION="-slitaz64"
 # CONFIG_LOCALVERSION_AUTO is not set
 CONFIG_HAVE_KERNEL_GZIP=y
 CONFIG_HAVE_KERNEL_BZIP2=y
@@ -142,7 +142,7 @@
 # CONFIG_SYSFS_DEPRECATED is not set
 # CONFIG_RELAY is not set
 CONFIG_BLK_DEV_INITRD=y
-CONFIG_INITRAMFS_SOURCE="initrd.cpio"
+CONFIG_INITRAMFS_SOURCE=""
 CONFIG_INITRAMFS_ROOT_UID=0
 CONFIG_INITRAMFS_ROOT_GID=0
 CONFIG_RD_GZIP=y



5.

flavors changeset 219:84449f90bc26 tip

core64: do not install linux/32 !
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 17 17:16:41 2014 +0200 (5 days ago ago)
parents 89fe96ff7f00
children
files core64/packages.list

# HG changeset patch
# User Pascal Bellard <pascal.bellard@slitaz.org>
# Date 1408288601 -7200
# Node ID 84449f90bc26c8cf4c713f6bc4aa210c55578e8f
# Parent  89fe96ff7f005fea845be17396792577e4ca217d
core64: do not install linux/32 !

diff -r 89fe96ff7f00 -r 84449f90bc26 core64/packages.list
--- a/core64/packages.list Mon May 19 12:21:36 2014 +0200
+++ b/core64/packages.list Sun Aug 17 17:16:41 2014 +0200
@@ -1,3 +1,8 @@
+linux64
+linux64-crypto
+linux64-firmware
+linux64-sound
+linux64-wireless
 915resolution
 acl
 alsa-lib
@@ -83,11 +88,6 @@
 libxcb
 libxml2
 libxslt
-linux64
-linux64-crypto
-linux64-firmware
-linux64-sound
-linux64-wireless
 locale-de
 locale-es
 locale-fr

Slitaz -- slitaz-rolling-core64 (20140819)

slitaz-rolling-core64.iso    2014-Aug-19 17:08:45 41.0M


1.
tux@slitaz:~$ uname -a
Linux slitaz 3.2.53-slitaz64 #2 SMP Tue Aug 19 07:22:20 Europe 2014 x86_64 GNU/Linux

2. unpack rootfs
tux@slitaz:~$ dmesg | grep -A 5 initramfs
Trying to unpack rootfs image as initramfs...
....................................
Freeing initrd memory: 52k freed
PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
Placing 64MB software IO TLB between ffff8800c748e000 - ffff8800cb48e000
software IO TLB at phys 0xc748e000 - 0xcb48e000

3. System Infomation
-Version-
Kernel			: Linux 3.2.53-slitaz64 (x86_64)
Compiled		: #2 SMP Tue Aug 19 07:22:20 Europe 2014
C Library		: GNU C Library version 2.14.1 (stable)
Default C Compiler	: Unknown
Distribution		: Slitaz GNU/Linux cooking
-Current Session-
Computer Name		: slitaz
User Name		: tux (SliTaz User)
Home Directory		: /home/tux
Desktop Environment	: Unknown (Window Manager: Openbox)
-Misc-
Uptime			: 36 minutes
Load Average		: 0.00, 0.01, 0.05

4. eth0: No such device
tux@slitaz:~$ grep -A 5 network /var/log/boot.log
Processing: /etc/init.d/network.sh
Setting hostname to: slitaz                                         [ Done ]
Configuring loopback...                                              [ Done ]
ifconfig: SIOCGIFFLAGS: No such device
Starting udhcpc client on: eth0...
udhcpc: SIOCGIFINDEX: No such device

5. linux64-3.2.53
tux@slitaz:~$ ls -l /lib/modules/3.2.53-slitaz64/kernel/drivers/net
total 0
drwxr-xr-x   23 root     root           700 Aug 19 10:56 wireless

6. linux64/files.list
tux@slitaz:~$ cat /var/lib/tazpkg/installed/linux64/files.list
/boot/vmlinuz-3.2.53-slitaz64
/lib/modules/3.2.53-slitaz64/modules.dep
/lib/modules/3.2.53-slitaz64/modules.softdep
/lib/modules/3.2.53-slitaz64/modules.order
/lib/modules/3.2.53-slitaz64/modules.alias
/lib/modules/3.2.53-slitaz64/modules.devname
/lib/modules/3.2.53-slitaz64/kernel/drivers/char/rtc.ko.xz
/lib/modules/3.2.53-slitaz64/kernel/drivers/char/genrtc.ko.xz
/lib/modules/3.2.53-slitaz64/kernel/drivers/ide/ide-cs.ko.xz
/lib/modules/3.2.53-slitaz64/kernel/lib/libcrc32c.ko.xz

/lib/modules/3.2.53-slitaz64/modules.builtin
/lib/modules/3.2.53-slitaz64/modules.symbols
/lib/modules/3.2.53-slitaz64/modules.builtin.bin
/lib/modules/3.2.53-slitaz64/modules.alias.bin
/lib/modules/3.2.53-slitaz64/modules.dep.bin
/lib/modules/3.2.53-slitaz64/modules.symbols.bin
tux@slitaz:~$


7. modules64.list
linux/stuff/modules64.list
http://cook.slitaz.org/cooker.cgi?stuff=linux/stuff/modules64.list

drivers/acpi/video.ko.xz
drivers/acpi/button.ko.xz
drivers/char/genrtc.ko.xz
drivers/char/i8k.ko.xz
drivers/char/lp.ko.xz
drivers/char/ppdev.ko.xz
drivers/char/rtc.ko.xz
drivers/regulator/fixed.ko.xz
drivers/regulator/tps6105x-regulator.ko.xz
drivers/mmc/host/tifm_sd.ko.xz
[..]

8. Cook summary
http://cook.slitaz.org/cooker.cgi?pkg=linux

Summary for: linux64 3.2.53
================================================================================
Source dir  : 12.0K
Packed      : 4.6M
Compressed  : 3.1M
Files      : 16
Cook time   : 29s 
Cook date   : 2014-08-19 10:17
Host arch   : i486
================================================================================
Leaving aufs chroot...
--
Summary for: linux 3.2.53
================================================================================
Source dir  : 1.0G
Src file    : linux-3.2.53.tar.xz
Src size    : 62.6M
Produced    : 80.1M
Packed      : 7.1M
Compressed  : 5.8M
Files       : 337
Cook time   : 14582s ~ 243m
Cook date   : 2014-08-19 10:18
Host arch   : i486

2014-08-16

Slitaz -- slitaz-rolling-core64 (20140804)


Linux slitaz 3.2.53-slitaz #2 SMP Wed Jul 30 14:21:12 Europe 2014 x86_64 GNU/Linux
echo -e "\n* Building bzImage64 with modules...\n"
make -j 4 ARCH=x86_64 CROSS_COMPILE=uclibc-x86_64- bzImage &&
root@slitaz:/tmp# file -k vmlinuz-3.2.53-slitaz
vmlinuz-3.2.53-slitaz: x86 boot sector12- Linux kernel x86 boot executable bzImage, version 3.2.53-slitaz (root@tank) #2 SMP Wed Jul 30 14:21:12 Europe 201, RO-rootFS, swap_dev 0x2, Normal VGA MS-DOS executable, MZ for MS-DOS
1.
root@slitaz:~$ uname -a
Linux slitaz 3.2.53-slitaz #2 SMP Wed Jul 30 14:21:12 Europe 2014 x86_64 GNU/Linux


2.
root@slitaz:~$ slitaz
SliTaz GNU/Linux
================================================================================
Release : cooking
Architecture : i486
Kernel : 3.2.53-slitaz
Machine type : x86_64
Home path : /home/slitaz
Configs : /etc/slitaz
Main config : /etc/slitaz/slitaz.conf
Log files : /var/log/slitaz
Packages DB : /var/lib/tazpkg
Installed : 260 packages
Mirror : http://mirror.slitaz.org/packages/cooking/
System date : Fri Aug 15 00:17:08 UTC 2014
--------------
Boot options : root=/dev/hda1 screen=text
================================================================================


3.
root@slitaz:~$ dmesg | head 4
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 3.2.53-slitaz (root@tank) (gcc version 4.2.1) #2 SMP Wed Jul 30 14:21:12 Europe 2014
Command line: root=/dev/hda1 screen=text


4.
root@slitaz:~$ cat /var/log/boot.log
Processing: /etc/init.d/rcS...
Mounting proc filesystem on /proc                                    [ Done ]
Mounting devtmpfs filesystem on: /dev                                [ Done ]
Starting udev daemon...
Udevadm requesting events from the Kernel...
Udevadm waiting for the event queue to finish...
Remounting rootfs read/write...
Mounting filesystems in fstab...
Searching for early boot options...                                  [ Done ]
Cleaning up the system...                                            [ Done ]
Mounting usbfs filesystem on: /proc/bus/usb                          [ Done ]
Starting system log daemon: syslogd...                               [ Done ]
Starting kernel log daemon: klogd...                                 [ Done ]
Loading Kernel modules...
Loading module: PIIX_IDEmodprobe: FATAL: Module PIIX_IDE not found.
[ Failed ]
Triggering udev events: --action=add                                 [ Done ]
Processing: /etc/init.d/bootopts.sh
Checking for SliTaz cmdline options...
Processing: /etc/init.d/system.sh
Unable to configure sound card.
Setting system locale: POSIX                                         [ Done ]
Loading console keymap: us                                           [ Done ]
Starting TazPanel web server on port 82...                           [ Done ]
Processing: /etc/init.d/network.sh
Setting hostname to: slitaz                                          [ Done ]
Configuring loopback...                                              [ Done ]
ifconfig: SIOCGIFFLAGS: No such device
Starting udhcpc client on: eth0...
udhcpc: SIOCGIFINDEX: No such device
Processing: /etc/init.d/local.sh
Starting all daemons...
Setting up kernel security rules...                                  [ Done ]
WARNING: IPtables rules are disabled
httpd is already active.

Welcome to your box

Slitaz -- boot kernel with initramfs

qemu-x86_64 -m 512 -kernel vmlinuz-3.2.53-slitaz
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE="initrd.cpio"

50 cp /usr/share/boot/initrd initrd.cpio

[ -x /bin/udhcpc ] && udhcpc -b -s /init
while true; do
   busybox | sed '/Current/,$!d'
   if [ -x /bin/setsid ]; then
      setsid sh -c "exec sh <$TTY >$TTY 2>&1"
   else
      sh <$TTY >$TTY 2>&1
   fi
done

slitaz-rolling-core64.iso 2014-Aug-04 05:42:53 44.0M

1. extract vmlinuz-3.2.53-slitaz and rootfs.gz from slitaz-rolling-core64.iso
Applications --> Accessories --> ISO Master

2.
root@slitaz:/tmp# ls -l rootfs.gz vmlinuz-3.2.53-slitaz
-rw-r--r-- 1 root root 41239348 Aug 13 10:26 rootfs.gz
-rw-r--r-- 1 root root 3084016 Aug 13 10:26 vmlinuz-3.2.53-slitaz

3.
root@slitaz:/tmp# file -k vmlinuz-3.2.53-slitaz
vmlinuz-3.2.53-slitaz: x86 boot sector12- Linux kernel x86 boot executable bzImage, version 3.2.53-slitaz (root@tank) #2 SMP Wed Jul 30 14:21:12 Europe 201, RO-rootFS, swap_dev 0x2, Normal VGA MS-DOS executable, MZ for MS-DOS

4.
root@slitaz:/tmp# tazpkg -gi qemu-x86_64

root@slitaz:/tmp# qemu-x86_64 -m 512 -kernel vmlinuz-3.2.53-slitaz


  • mkdir: can't create directory 『/dev': File exists
  • udhcpc: ioctl 0x8933 failed: No such device

Slitaz -- rootfs.gz (slitaz-rolling-core64.iso) and debian-kernel-amd64


rootfs.gz (slitaz-rolling-core64.iso) and debian-kernel-amd64
2. config-3.2.0-4-amd64:
extract from Debian linux-image-3.2.0-4-amd64

Ref:

Slitaz -- core64 / amd64
http://alanyih.blogspot.com/2013/12/slitaz-core64-amd64.html

Slitaz -- busybox-boot / initrd / initrd.cpio

busybox-boot / initrd / initrd.cpio

CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE="initrd.cpio"

busybox-boot / initrd
http://cook.slitaz.org/cooker.cgi?receipt=busybox-boot

SHORT_DESC="Many common UNIX utilities for core-5in1/boot flavor."

Ref:

Slitaz -- core64 / initrd.cpio
http://alanyih.blogspot.com/2014/01/slitaz-core64-initrdcpio.html

2014-08-11

slitaz-roll-core64 VS. slitaz-x86_64


slitaz-roll-core64 VS. slitaz-x86_64
Diff slitaz-roll-core64 * slitaz-x86_64 **
Core (kernel,modules) 64bits 64bits
packages 32bits 64bits (32bits TODO)
toolchain uclibc-cross-compiler-x86_64 slitaz-x86_64-toolchain (gcc-4.6.3)
INITRAMFS_SOURCE initrd.cpio ""
.config linux-slitaz.config64 config-3.2.0-4-amd64

Note:
* slitaz-roll-core64
1. Distro: rolling-core64
http://cook.slitaz.org/cookiso.cgi?distro=rolling-core64

Description: 64 bits kernel with a fully featured 32 bits desktop.


2. receipt
http://cook.slitaz.org/cooker.cgi?receipt=linux
[..]
# The Linux receipt handle cross compilation. For x86_64 we actually use
# the uclibc-cross-compiler-x86_64
[..]
# Build bzImage64 with modules
cp -f $stuff/$PACKAGE-slitaz.config64 .config
echo -e "\n* Configure bzImage64 with modules...\n"
yes '' | make ARCH=x86_64 oldconfig

echo -e "\n* Building bzImage64 with modules...\n"
make -j 4 ARCH=x86_64 CROSS_COMPILE=uclibc-x86_64- bzImage &&
make -j 4 ARCH=x86_64 CROSS_COMPILE=uclibc-x86_64- modules &&


3. linux-slitaz.config64
http://cook.slitaz.org/cooker.cgi?stuff=linux/stuff/linux-slitaz.config64

[..]
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE="initrd.cpio"
CONFIG_INITRAMFS_ROOT_UID=0
CONFIG_INITRAMFS_ROOT_GID=0



** slitaz-x86_64

1. slitaz-x86_64
http://alanyih.blogspot.com/2014/05/slitaz-x8664.html
root@slitaz:~# uname -a
Linux slitaz 3.2.53-slitaz #1 SMP Wed Jan 1 18:22:13 UTC 2014 x86_64 GNU/Linux

[ 0.000000] Linux version 3.2.53-slitaz (root@slitaz) (gcc version 4.6.3 (SliTaz) ) #1 SMP Wed Jan 1 18:22:13 UTC 2014

root@slitaz:~# file /lib/libc-2.13.so
/lib/libc-2.13.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped

2. config-3.2.0-4-amd64:
extract from Debian linux-image-3.2.0-4-amd64

Slitaz -- gnumeric / harfbuzz

gnumeric: Office Spreadsheet application.

libharfbuzz.so.0: cannot open shared object file: No such file or directory

tux@slitaz:~$ gnumeric &
tux@slitaz:~$ gnumeric: error while loading shared libraries: libharfbuzz.so.0: cannot open shared object file: No such file or directory

# tazpkg -gi harfbuzz

2014-08-01

Slitaz -- cool-old-term

20140802-cool-old-term.jpg

cool-old-term


Description

cool-old-term is a terminal emulator which tries to mimic the look and feel of the old cathode tube screens. It has been designed to be eye-candy, customizable, and reasonably lightweight.
It now uses the konsole engine which is powerful and mature.
This terminal emulator requires Qt 5.2 or higher to run.


/usr/src/cool-old-term # date
Sat Aug  2 10:33:46 UTC 2014

/usr/src/cool-old-term # uname -a
Linux slitaz 3.2-slitaz #1 SMP Sat May 18 22:32:35 CST 2013 i686 GNU/Linux

/usr/src/cool-old-term # ls -l konsole-qml-plugin/*.so
-rwxr-xr-x    1 root     root        575415 Aug  2 09:07 konsole-qml-plugin/libkdekonsole.so
/usr/src/cool-old-term # 

 

2014-07-29

Slitaz -- screenshot

scrot: A screen capture utility

Take a screenshot of the full screen with scrot when Print are pressed
Take a screenshot of the current window with scrot when Alt+Print are pressed


1.
tux@slitaz:~$ sudo tazpkg -gi scrot


2.
tux@slitaz:~$ scrot --help | grep -A 3 Example
  Example:
          scrot '%Y-%m-%d_$wx$h_scrot.png' -e 'mv $f ~/images/shots/'
          Creates a file called something like 2000-10-30_2560x1024_scrot.png
          and moves it to your images directory.


3.
tux@slitaz:~$ grep -A 3 Print .config/openbox/rc.xml
  <!-- Take a screenshot of the full screen with scrot when Print are pressed -->
  <keybind key="Print">
    <action name="Execute"><command>scrot '%Y%m%d-%s.png'</command></action>
  </keybind>
  <!-- Take a screenshot of the current window with scrot when Alt+Print are pressed -->
  <keybind key="A-Print">
    <action name="Execute"><command>scrot -b -u '%Y%m%d-%s.png'</command></action>
  </keybind>

tux@slitaz:~$

2014-07-28

Slitaz -- wpa / nl80211


nl80211: 'nl80211' generic netlink not found
Failed to initialize driver 'nl80211'                [ Failed ]


1.
root@slitaz:/home/tux# /etc/init.d/wpa_supplicant start
Starting wpa_supplicant deamon: wpa_supplicant... Successfully initialized wpa_supplicant
nl80211: 'nl80211' generic netlink not found
Failed to initialize driver 'nl80211'                [ Failed ]


2.
root@slitaz:/home/tux# modprobe mac80211

root@slitaz:/home/tux# lsmod | head -5
Module                  Size  Used by    Tainted: G 
r8712u                115832  0
mac80211              161375  0
cfg80211              117342  1 mac80211
rfkill                 10155  2 cfg80211


3.
root@slitaz:/home/tux# modinfo mac80211
filename:       /lib/modules/3.2.53-slitaz/kernel/net/mac80211/mac80211.ko.xz
license:        GPL
description:    IEEE 802.11 subsystem
depends:        cfg80211
intree:         Y
vermagic:       3.2.53-slitaz SMP mod_unload 386
parm:           ieee80211_default_rc_algo:Default rate control algorithm for mac80211 to use (charp)
parm:           max_nullfunc_tries:Maximum nullfunc tx tries before disconnecting (reason 4). (int)
parm:           max_probe_tries:Maximum probe tries before disconnecting (reason 4). (int)
parm:           probe_wait_ms:Maximum time(ms) to wait for probe response before disconnecting (reason 4). (int)
root@slitaz:/home/tux#

Slitaz -- wpa / wext


-D = driver name (can be multiple drivers: nl80211,wext)

example:
wpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.conf


1.
root@slitaz:/home/tux# wpa_supplicant -help | grep -A 3 drivers:
drivers:
nl80211 = Linux nl80211/cfg80211
wext = Linux wireless extensions (generic)
wired = Wired Ethernet driver
--
-D = driver name (can be multiple drivers: nl80211,wext)
-e = entropy file
-g = global ctrl_interface
-G = global ctrl_interface group


2.
Update wpa_supplicant (2.1) And use /etc/wpa
http://hg.slitaz.org/wok/raw-rev/62082fa37457

diff -r f2f0afdddde7 -r 62082fa37457 wpa_supplicant/receipt
--- a/wpa_supplicant/receipt Sat Feb 15 15:38:27 2014 +0100
+++ b/wpa_supplicant/receipt Sat Feb 15 19:55:40 2014 +0100
@@ -1,7 +1,7 @@
# SliTaz package receipt.

PACKAGE="wpa_supplicant"
-VERSION="1.1"
+VERSION="2.1"
CATEGORY="utilities"
SHORT_DESC="WPA Supplicant with support for WPA and WPA2"
MAINTAINER="0dddba11@googlemail.com"
@@ -57,20 +57,22 @@
$src/wpa_supplicant/dbus/dbus-wpa_supplicant.conf \
$fs/etc/dbus-1/system.d/wpa_supplicant.conf

- # Startup script and cleaned up wpa_supplicant.conf
- cp -a stuff/etc $fs
- # dont copy the original
- # cp -a $src/$PACKAGE/wpa_supplicant.conf $fs/etc
+ # Startup script and cleaned up wpa_empty.conf
+ cp -a $stuff/etc $fs
+ cp -a $src/$PACKAGE/wpa_supplicant.conf $fs/etc/wpa
}


3.
root@slitaz:/home/tux# head -15 /etc/init.d/wpa_supplicant
#!/bin/sh
# /etc/init.d/wpa_supplicant: Start, stop and restart wpa_supplicant deamon
# on SliTaz, at boot time or with the command line.
#
# To start daemon at boot time, just put the right name in the $RUN_DAEMONS
# variable of /etc/rcS.conf and configure options with /etc/daemons.conf.
#
. /etc/init.d/rc.functions
. /etc/daemons.conf

NAME=wpa_supplicant
DESC="wpa_supplicant deamon"
DAEMON=/usr/bin/wpa_supplicant
OPTIONS=$WPA_OPTIONS
PIDFILE=/var/run/wpa_supplicant.pid


4.
root@slitaz:/home/tux# tail -2 /etc/daemons.conf
# wpa_supplicant daemon options
WPA_OPTIONS="-B -u -D wext -P /var/run/wpa_supplicant.pid -c /etc/wpa/wpa.conf -i $(. /etc/network.conf ; echo $WIFI_INTERFACE)"


5.
root@slitaz:/home/tux# ps | grep wpa
1675 root 0:00 /usr/bin/wpa_supplicant -B -u -D wext -P /var/run/wpa_supplicant.pid -c /etc/wpa/wpa.conf -i wlan0
1955 root 0:00 grep wpa
root@slitaz:/home/tux#

Slitaz -- wpa


Successfully initialized wpa_supplicant
wlan0: Failed to initialize driver interface


1.
root@slitaz:/home/tux# /etc/init.d/wpa_supplicant start
Starting wpa_supplicant deamon: wpa_supplicant... Successfully initialized wpa_supplicant
wlan0: Failed to initialize driver interface [ Failed ]


2.
root@slitaz:/home/tux# dmesg | tail -15
usbcore: deregistering interface driver r8712u
usb 2-6: reset high-speed USB device number 4 using ehci_hcd
r8712u: Driver unloaded
r8712u: module is from the staging directory, the quality is unknown, you have been warned.
r8712u: DriverVersion: v7_0.20100831
r8712u: register rtl8712_netdev_ops to netdev_ops
r8712u: USB_SPEED_HIGH with 4 endpoints
r8712u: Boot from EFUSE: Autoload OK
r8712u: CustomerID = 0x0010
r8712u: MAC Address from efuse = c8:60:00:xx:xx:xx
r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
usbcore: registered new interface driver r8712u
r8712u: 1 RCR=0x153f00e
r8712u: 2 RCR=0x553f00e
ADDRCONF(NETDEV_UP): wlan0: link is not ready
root@slitaz:/home/tux#


3.
root@slitaz:/home/tux# lsmod | head -5
Module Size Used by Tainted: G
r8712u 115832 0
mac80211 161375 0
cfg80211 117342 1 mac80211
rfkill 10155 2 cfg80211
root@slitaz:/home/tux#


4.
root@slitaz:/home/tux# wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf &
root@slitaz:/home/tux# Successfully initialized wpa_supplicant


5.
root@slitaz:/home/tux# dmesg | tail
r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
usbcore: registered new interface driver r8712u
r8712u: 1 RCR=0x153f00e
r8712u: 2 RCR=0x553f00e
ADDRCONF(NETDEV_UP): wlan0: link is not ready
ADDRCONF(NETDEV_UP): wlan0: link is not ready
ADDRCONF(NETDEV_UP): wlan0: link is not ready
ADDRCONF(NETDEV_UP): wlan0: link is not ready
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
wlan0: no IPv6 routers present


6.
root@slitaz:/home/tux# iwconfig wlan0
wlan0 IEEE 802.11bg ESSID:"slitaz" Nickname:"rtl_wifi"
Mode:Managed Frequency:2.442 GHz Access Point: 30:85:A9:xx:xx:xx
Bit Rate:54 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:****-****-****-****-****-****-****-**** Security mode:open
Power Management:off
Link Quality=100/100 Signal level=63/100 Noise level=0/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

7.
root@slitaz:/home/tux# ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr C8:60:00:xx:xx:xx
inet addr:192.168.1.32 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::ca60:ff:fexx:xxxx/xx Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:113 errors:0 dropped:81 overruns:0 frame:0
TX packets:12 errors:0 dropped:1 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14750 (14.4 KiB) TX bytes:1807 (1.7 KiB)

2014-06-27

Slitaz -- strip


1.
tux@slitaz:~$ strip --help
[..]
  -s --strip-all                   Remove all symbol and relocation information
  -g -S -d --strip-debug           Remove all debugging symbols & sections
     --only-keep-debug             Strip everything but the debug information
  -K --keep-symbol=<name>          Do not strip symbol <name>
     --keep-file-symbols           Do not strip file symbol(s)


2.
tux@slitaz:~$ grep -A 15 'strip_package()' /usr/bin/cook
strip_package() {
    case "$ARCH" in
        arm|x86_64) export STRIP=${HOST_SYSTEM}-strip ;;
        *) export STRIP=strip ;;
    esac
    gettext "Executing strip on all files..."
    for dir in $fs/bin $fs/sbin $fs/usr/bin $fs/usr/sbin $fs/usr/games
    do
        if [ -d "$dir" ]; then
            find $dir -type f -exec $STRIP -s '{}' 2>/dev/null \;
        fi
    done
    find $fs -name "*.so*" -exec $STRIP -s '{}' 2>/dev/null \;
    find $fs -name "*.a" -exec $STRIP --strip-debug '{}' 2>/dev/null \;
    status

tux@slitaz:~$


3.
tux@slitaz:~$ grep strip /usr/bin/cross
        find $tools/bin -type f -exec strip -s '{}' 2>/dev/null \;
        find $tools/lib -name cc1* -exec strip -s '{}' 2>/dev/null \;
        find $tools/lib -name lto* -exec strip -s '{}' 2>/dev/null \;
        find $sysroot -name "*.so*" -exec ${TARGET}-strip -s '{}' 2>/dev/null \;
tux@slitaz:~$

2014-06-26

Slitaz -- valgrind - README_PACKAGERS


7. README_PACKAGERS
http://valgrind.org/docs/manual/dist.readme-packagers.html
-- Do not ship your Linux distro with a completely stripped /lib/ld.so. At least leave the debugging symbol names on -- line number info isn't necessary. If you don't want to leave symbols on ld.so, alternatively you can have your distro install ld.so's debuginfo package by default, or make ld.so.debuginfo be a requirement of your Valgrind RPM/DEB/whatever.

Reason for this is that Valgrind's Memcheck tool needs to intercept calls to, and provide replacements for, some symbols in ld.so at startup (most importantly strlen). If it cannot do that, Memcheck shows a large number of false positives due to the highly optimised strlen (etc) routines in ld.so. This has caused some trouble in the  past. As of version 3.3.0, on some targets (ppc32-linux, ppc64-linux), Memcheck will simply stop at startup (and print an error message) if such symbols are not present, because it is infeasible to continue.

It's not like this is going to cost you much space. We only need the symbols for ld.so (a few K at most). Not the debug info and not any debuginfo or extra symbols for any other libraries.
-- Don't strip the debug info off lib/valgrind/$platform/vgpreload*.so in the installation tree.
-- Don't strip symbols from lib/valgrind/* in the installation tree.
-- Please test the final installation works by running it on something huge.

Slitaz -- valgrind -ld.so

ship a non-stripped ld.so (or whatever the dynamic linker .so is called)
 
ld-2.14.1.so - not stripped
http://goo.gl/5XujLi

tux@slitaz:~$ ls -l /lib/ld*
-rwxr-xr-x 1 root root 682804 Jun 25 11:18 /lib/ld-2.14.1.so
-rwxr-xr-x 1 root root 134308 Jun 25 11:17 /lib/ld-2.14.1.so-orig
lrwxrwxrwx 1 root root 12 Jun 25 10:55 /lib/ld-linux.so.2 -> ld-2.14.1.so

tux@slitaz:~$ file /lib/ld-2.14.1.so
/lib/ld-2.14.1.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped

tux@slitaz:~$ valgrind --leak-check=full ./test.a
==2218== Memcheck, a memory error detector
==2218== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==2218== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==2218== Command: ./test.a
==2218==
==2218==
==2218== HEAP SUMMARY:
==2218== in use at exit: 0 bytes in 0 blocks
==2218== total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==2218==
==2218== All heap blocks were freed -- no leaks are possible
==2218==
==2218== For counts of detected and suppressed errors, rerun with: -v
==2218== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 11 from 6)

2014-06-24

Slitaz -- valgrind

valgrind:  Fatal error at startup: a function redirection
valgrind: Possible fixes: (1, short term): install glibc's debuginfo
valgrind: package on this machine. (2, longer term): ask the packagers
valgrind: for your Linux distribution to please in future ship a non-
valgrind: stripped ld.so (or whatever the dynamic linker .so is called)
valgrind: that exports the above-named function using the standard
valgrind: calling conventions for this platform.
tux@slitaz:~$ file /lib/ld-2.14.1.so
/lib/ld-2.14.1.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped
tux@slitaz:~$

tux@slitaz:~$ gcc -g -o test.a test.c
tux@slitaz:~$ valgrind --leak-check=full ./test.a
==10582== Memcheck, a memory error detector
==10582== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==10582== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==10582== Command: ./test.a
==10582==

valgrind:  Fatal error at startup: a function redirection
valgrind:  which is mandatory for this platform-tool combination
valgrind:  cannot be set up.  Details of the redirection are:
valgrind: 
valgrind:  A must-be-redirected function
valgrind:  whose name matches the pattern:      strlen
valgrind:  in an object with soname matching:   ld-linux.so.2
valgrind:  was not found whilst processing
valgrind:  symbols from the object with soname: ld-linux.so.2
valgrind: 
valgrind:  Possible fixes: (1, short term): install glibc's debuginfo
valgrind:  package on this machine.  (2, longer term): ask the packagers
valgrind:  for your Linux distribution to please in future ship a non-
valgrind:  stripped ld.so (or whatever the dynamic linker .so is called)
valgrind:  that exports the above-named function using the standard
valgrind:  calling conventions for this platform.  The package you need
valgrind:  to install for fix (1) is called
valgrind: 
valgrind:    On Debian, Ubuntu:                 libc6-dbg
valgrind:    On SuSE, openSuSE, Fedora, RHEL:   glibc-debuginfo
valgrind: 
valgrind:  Cannot continue -- exiting now.  Sorry.

2014-06-18

Slitaz on Radxa Rock


Ubuntu 14.04 and Slitaz on Radxa Rock
http://www.cnx-software.com/2014/05/18/ubuntu-14-04-and-slitaz-on-radxa-rock/

First download boot-slitaz-20140517.img (kernel + slitaz ramdisk), and slitaz-armhf-mini-2012-12-14.zip. Extract the rootfs from slitaz-armhf-mini-2012-12-14.img (ext-4 partition). then follow the 「Flashing Ubuntu to Radxa Rock」 section in my getting started guide for Radxa Rock to flash boot.img. It is simply one line:
upgrade_tool di -b /path-to/boot-slitaz-20140517.img
Simply login with root username, and root password to access the command line. It might also be possible to use a more up-to-date rootfs from http://arm.slitaz.org/rpi/, but it is only armel.
[Update: Alanyih has also been given me the build instructions for his Slitaz image:
git clone -b wip/lsk-android-14.04-radxa-rock https://github.com/linux-rockchip/kernel_rockchip.git
make radxa_rock_defconfig
make zImage rk3188-radxa-rock.dtb
cat arch/arm/boot/zImage arch/arm/boot/dts/rk3188-radxa-rock.dtb > zImage-lsk
mkbootimg --kernel zImage-lsk --ramdisk slitaz-ramdisk.gz -o boot-slitaz-20140517.img
]
Both Ubuntu 14.04 and Slitaz should be able to run on any Rockchip RK3188 device thanks to the device tree and multi-platform enabled Linux kernel, as long as you can somehow come up with the right device file for your device, which may not always be an easy task.
boot-slitaz-20140517.img (kernel + slitaz ramdisk)
http://goo.gl/Mc7L4q

2014-06-02

radxa -- Serial console debugging




Serial console debugging / putty


1.
Connect the cable
Board    TTL2USB Cable
RX    ->  Green
TX    ->  White
GND   ->  Black 


2.
root@slitaz:/home/tux# dmesg | tail
usb 2-1: new full-speed USB device number 3 using uhci_hcd
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for pl2303
pl2303 2-1:1.0: pl2303 converter detected
usb 2-1: pl2303 converter now attached to ttyUSB0
usbcore: registered new interface driver pl2303
pl2303: Prolific PL2303 USB to serial adaptor driver


3.
root@slitaz:/home/tux#  cat /proc/tty/drivers
/dev/tty             /dev/tty        5         0 system:/dev/tty
/dev/console         /dev/console    5         1 system:console
/dev/ptmx            /dev/ptmx       5         2 system
/dev/vc/0            /dev/vc/0       4         0 system:vtmaster
usbserial            /dev/ttyUSB   188      0-253 serial
serial               /dev/ttyS       4         64-67 serial
pty_slave            /dev/pts      136         0-1048575 pty:slave
pty_master           /dev/ptm      128         0-1048575 pty:master
unknown              /dev/tty        4         1-63 console


4.
root@slitaz:/home/tux# ls -l /dev/ttyUSB*
crw-rw----    1 root     dialout   188,   0 May  2 21:41 /dev/ttyUSB0


5.
root@slitaz:/home/tux# grep dialout /etc/group
dialout:x:95:tux


6.
root@slitaz:/home/tux# tazpkg -gi putty


7.
DDR Version 1.04 20130517
In
DDR3
300MHz
Bus Width=32 Col=10 Bank=8 Row=15 CS=2 Die Bus-Width=16 Size=2048MB
Memory OK
OUT
BUILD=====2
SdmmcInit=0 0
FwPartOffset=0 , 0
No.1 FLASH ID:2c 64 44 4b a9 0
OK! 248205
unsigned!
SecureBootEn = 0 0
Boot ver: 2013-12-02#2.08
start_linux=====253060
 2571850 Starting kernel...@0x60408000

<hit enter to activate fiq debugger>
[    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.10.37-slitaz (root@slitaz) (gcc version 4.6.3 (SliTaz) ) #1 SMP PREEMPT Sun May 18 00:04:25 UTC 2014
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: RK30board, model: rockchip,rk3188

2014-06-01

radxa -- device-tree


device-tree

1.
[..]
Starting udhcpc client on: eth0...
udhcpc (v1.20.2) started
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background
Processing: /etc/init.d/local.sh
Starting all daemons...
Generating Dropbear rsa key... [ Done ]
Generating Dropbear dss key... [ Done ]
Starting SSH server: Dropbear... [ Done ]

Welcome to Radxa Rock
SliTaz boot time: 6s


2.
root@slitaz:~# dmesg | grep -B 3 Machine
[ 0.000000] Linux version 3.10.37-slitaz (root@slitaz) (gcc version 4.6.3 (SliTaz) ) #1 SMP PREEMPT Fri May 16 13:57:21 UTC 2014
[ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: RK30board, model: rockchip,rk3188


3.
root@slitaz:~# ls /proc/device-tree
#address-cells                 nandc
#size-cells                    pinctrl@20008000
adc@2006c000                   pmu@20004000
aliases                        pwm@20030000
amba                           pwm@20030010
ap0-vcc-domain                 pwm@20050020
ap1-vcc-domain                 pwm@20050030
backlight                      rga@10114000
bootram@10080000               rk_screen
bootrom@10120000               rksdmmc@10214000
cache-controller@10138000      rksdmmc@10218000
chosen                         rksdmmc@1021C000
cif-vcc-domain                 rockchip,sram
clocks                         rockchip-hdmi-i2s
clocks-init                    rockchip-hdmi-spdif
codec-hdmi-i2s                 rockchip-i2s@0x1011a000
codec-hdmi-spdif               rockchip-spdif@0x1011e000
compatible                     rockchip_suspend
cpu_axi_bus                    serial@10124000
cpus                           serial@10126000
dvfs                           serial@20064000
dwc-control-usb@200080ac       serial@20068000
fb                             spi@20070000
fiq-debugger                   spi@20074000
flash-vcc-domain               sram@10080020
hsic@10240000                  timer@20038000
i2c@2002d000                   timer@20038020
i2c@2002f000                   timer@20038040
i2c@20056000                   timer@20038060
i2c@2005a000                   timer@20038080
i2c@2005e000                   timer@200380a0
interrupt-controller@1013d000  twd-wdt@1013c620
interrupt-parent               usb@10180000
ion                            usb@101c0000
lcdc0-vcc-domain               vccio0-vcc-domain
lcdc1-vcc-domain               vccio1-vcc-domain
lcdc@1010c000                  vmac-phy
lcdc@1010e000                  vmac@10204000
memory                         wdt@2004c000
name                           wireless-wlan

4.
root@slitaz:~# cat /proc/device-tree/compatible
rockchip,rk3188root@slitaz:~#

root@slitaz:~# cat /proc/device-tree/chosen/bootargs
clk_ignore_unused console=ttyFIQ0,115200 console=tty0 root=/dev/mmcblk0p2 rw rootfstype=ext4 init=/sbin/init mac_addr=de:ad:de:ad:be:ef initrd=0x62000000,0x003E0000 mtdparts=rk29xxnand:0x00008000@0x00002000(boot),-@0x0000A000(linuxroot) bootver=2013-12-02#2.08 firmware_ver=4.2.2

root@slitaz:~# cat /proc/device-tree/wireless-wlan/compatible
wlan-platdataroot@slitaz:~#

Slitaz -- ghex



GHex is a simple binary editor.

root@slitaz:/tmp# hexdump -C /home/tux/putty-0517-140415.log | head 
00000000  3d 7e 3d 7e 3d 7e 3d 7e  3d 7e 3d 7e 3d 7e 3d 7e  |=~=~=~=~=~=~=~=~|
00000010  3d 7e 3d 7e 3d 7e 3d 20  50 75 54 54 59 20 6c 6f  |=~=~=~= PuTTY lo|
00000020  67 20 32 30 31 34 2e 30  35 2e 31 37 20 31 34 3a  |g 2014.05.17 14:|
00000030  30 34 3a 31 35 20 3d 7e  3d 7e 3d 7e 3d 7e 3d 7e  |04:15 =~=~=~=~=~|
00000040  3d 7e 3d 7e 3d 7e 3d 7e  3d 7e 3d 7e 3d 0d 0a 00  |=~=~=~=~=~=~=...|
00000050  44 44 52 20 56 65 72 73  69 6f 6e 20 31 2e 30 34  |DDR Version 1.04|
00000060  20 32 30 31 33 30 35 31  37 0d 0a 49 6e 0d 0a 44  | 20130517..In..D|
00000070  44 52 33 0d 0a 33 30 30  4d 48 7a 0d 0a 42 75 73  |DR3..300MHz..Bus|
00000080  20 57 69 64 74 68 3d 33  32 20 43 6f 6c 3d 31 30  | Width=32 Col=10|
00000090  20 42 61 6e 6b 3d 38 20  52 6f 77 3d 31 35 20 43  | Bank=8 Row=15 C| 

root@slitaz:/tmp# hexdump -C /home/tux/putty-0517-125735.log | head 
00000000  3d 7e 3d 7e 3d 7e 3d 7e  3d 7e 3d 7e 3d 7e 3d 7e  |=~=~=~=~=~=~=~=~|
00000010  3d 7e 3d 7e 3d 7e 3d 20  50 75 54 54 59 20 6c 6f  |=~=~=~= PuTTY lo|
00000020  67 20 32 30 31 34 2e 30  35 2e 31 37 20 31 32 3a  |g 2014.05.17 12:|
00000030  35 37 3a 33 35 20 3d 7e  3d 7e 3d 7e 3d 7e 3d 7e  |57:35 =~=~=~=~=~|
00000040  3d 7e 3d 7e 3d 7e 3d 7e  3d 7e 3d 7e 3d 0d 0a 44  |=~=~=~=~=~=~=..D|
00000050  44 52 20 56 65 72 73 69  6f 6e 20 31 2e 30 34 20  |DR Version 1.04 |
00000060  32 30 31 33 30 35 31 37  0d 0a 49 6e 0d 0a 44 44  |20130517..In..DD|
00000070  52 33 0d 0a 33 30 30 4d  48 7a 0d 0a 42 75 73 20  |R3..300MHz..Bus |
00000080  57 69 64 74 68 3d 33 32  20 43 6f 6c 3d 31 30 20  |Width=32 Col=10 |
00000090  42 61 6e 6b 3d 38 20 52  6f 77 3d 31 35 20 43 53  |Bank=8 Row=15 CS|