2014-12-29

docker -- Docker Hub

Docker Hub
https://hub.docker.com
The home for all things Docker
Browse, Search, Push, Pull Repositories
100 Official Images
45,324 Public Images - 20141229

slitaz/slitaz-base
https://registry.hub.docker.com/u/slitaz/slitaz-base/
Pull this repository: docker pull slitaz/slitaz-base
Information
SliTaz base image weights ~ 9 MB.
SliTaz base rootfs comes pre-loaded with the following packages:
busybox 1.21.1
dropbear 2013.60 – Light SSH client and server.
nano 2.2.6 – GNU Nano Text Editor.
retawq 0.2.6c – Text mode Web browser.
tazpkg 5.1 – SliTaz packages manager (Tiny autonomous zone packages manager).
ytree 1.97 – file manager for file and archives.
The name SliTaz stands for 「Simple Light Incredible Temporary Autonomous Zone」.

docker -- boot2docker.iso

boot2docker.iso
https://github.com/boot2docker/boot2docker/releases/download/v1.3.2/boot2docker.iso
1. download boot2docker.iso

2. boot the ISO image

That's it.

Ref:
Is boot2docker only for VirtualBox?
 https://github.com/boot2docker/boot2docker/blob/master/doc/FAQ.md

There are two parts of Boot2Docker: the ISO image, and the boot2docker management tool to set up and mange a VM. The management tool only works with VirtualBox, but the ISO image is designed to also be used with physical hardware. There are no plans to make separate ISO images for different configurations.

2014-12-24

docker -- boot2docker/VBox guest additions


boot2docker - Build VBox guest additions

VirtualBox Guest Additions #534

https://github.com/boot2docker/boot2docker/pull/534/files

# Build VBox guest additions
# For future reference, we have to use x86 versions of several of these bits
# because TCL doesn't support ELFCLASS64
# (... and we can't use VBoxControl or VBoxService at all because of this)
ENV VBOX_VERSION 4.3.18
RUN mkdir -p /vboxguest && \
cd /vboxguest && \
\
curl -L -o vboxguest.iso http://download.virtualbox.org/virtualbox/${VBOX_VERSION}/VBoxGuestAdditions_${VBOX_VERSION}.iso && \
7z x vboxguest.iso -ir'!VBoxLinuxAdditions.run' && \
rm vboxguest.iso && \
\
sh VBoxLinuxAdditions.run --noexec --target . && \
mkdir amd64 && tar -C amd64 -xjf VBoxGuestAdditions-amd64.tar.bz2 && \
mkdir x86 && tar -C x86 -xjf VBoxGuestAdditions-x86.tar.bz2 && \
rm VBoxGuestAdditions*.tar.bz2 && \
\
KERN_DIR=/linux-kernel/ make -C amd64/src/vboxguest-${VBOX_VERSION} && \
cp amd64/src/vboxguest-${VBOX_VERSION}/*.ko $ROOTFS/lib/modules/$KERNEL_VERSION-tinycore64/ && \
\
mkdir -p $ROOTFS/sbin && \
cp x86/lib/VBoxGuestAdditions/mount.vboxsf $ROOTFS/sbin/

# Make sure that all the modules we might have added are recognized (especially VBox guest additions)
RUN depmod -a -b $ROOTFS $KERNEL_VERSION-tinycore64

# COPY VERSION $ROOTFS/etc/version
RUN cp -v $ROOTFS/etc/version /tmp/iso/version

----

boot2docker together with VirtualBox Guest Additions
How to mount /Users into boot2docker


https://blog.docker.com/2014/10/docker-1-3-signed-images-process-injection-security-options-mac-shared-directories

2014-12-22

docker -- commit and x86_64 packages


docker -- commit and x86_64 packages
packages-x86_64-178-list
http://goo.gl/ipYRQN

20140306-x86_64-packages-178.tar.gz
http://goo.gl/qeKt6o

http://forum.slitaz.org/topic/installing-virtualbox-guest-additions-in-slitaz-50#post-34953


1.
root@boot2docker:~# docker run -it slitaz/slitaz-base
/ #

download 20140306-x86_64-packages-178.tar.gz and extra to /var/www/slitaz/x86_64


2.
/ # tazpkg recharge

================================================================================
Last packages.list is ready to use. Note that next time you recharge the
list, a list of differences will be displayed to show new and upgradeable
packages.

/ # tazpkg list-mirror | tail -8
zlib-dev
1.2.8-x86_64
Zlib compression library devel files.
72.0K (240.0K installed)

================================================================================
178 packages in the last recharged list.


3.
/ # tazpkg -gi file

Tracking dependencies for: file
================================================================================
Missing: libmagic
================================================================================
1 missing package to install.

Installation of: libmagic
================================================================================
Copying libmagic... [ Done ]
Extracting libmagic... [ Done ]
Extracting the pseudo fs... [ Done ]
Installing libmagic... [ Done ]
Removing all tmp files... [ Done ]
================================================================================
libmagic (5.14) is installed.

Installation of: file
================================================================================
Copying file... [ Done ]
Extracting file... [ Done ]
Extracting the pseudo fs... [ Done ]
Installing file... [ Done ]
Removing all tmp files... [ Done ]
================================================================================
file (5.14) is installed.


4.
/ # spk info

Spk info
================================================================================
Architecture : x86_64
Database : /var/lib/tazpkg/installed
Cache info : 0 /var/cache/tazpkg
Mirror URL : /var/www/slitaz/x86_64/packages/
Extra mirrors : 0
Installed : 20
Mirrored : 178
================================================================================


5.
/ # 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


6.
/ # tail -5 /var/lib/tazpkg/installed.md5
f1e53b247bb72fcdfd225c89f93a7e71  zlib-1.2.8-x86_64.tazpkg
9afd31e45388e5b36364458d53a682e3  util-linux-uuid-2.21.1-x86_64.tazpkg
2e2cd1a2e890b840e5cbc637e7ddd5a3  util-linux-blkid-2.21.1-x86_64.tazpkg
0cb1f6e932344f44249e3c12f2fb6a89  file-5.14-x86_64.tazpkg
42a187ac1a9d649cb7e0521396ee9696  libmagic-5.14-x86_64.tazpkg

/ # exit


7.
root@boot2docker:~# docker ps -a
CONTAINER ID        IMAGE                       COMMAND             CREATED             STATUS                     PORTS               NAMES
353efd20bcd7        slitaz/slitaz-base:latest   "/bin/sh"           17 minutes ago      Exited (0) 6 seconds ago                       sick_euclid         

root@boot2docker:~# docker commit 353efd slitaz/slitaz-file
8ec8ca5baa6103e9573e0884f891d9c1213d0e84523b60334a16d39eaa72a67c

root@boot2docker:~# docker images

REPOSITORY           TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
slitaz/slitaz-file   latest              8ec8ca5baa61        6 seconds ago  11.6 MB
slitaz/slitaz-base   latest              0bd2fd062ec7        2 days ago   8.778 MB

8.
root@boot2docker:~# docker run -it slitaz/slitaz-file
/ # file /usr/bin/file
/usr/bin/file: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.32, stripped


9.
/ # tazpkg info file

Tazpkg information
================================================================================
Package : file
Version : 5.14
Category : system-tools
Short desc : Retrieve file type.
Maintainer : erjo@slitaz.org
Depends : zlib libmagic
Build deps : zlib-dev python
Web site : http://www.darwinsys.com/file/
================================================================================


10.
/ # du -sh /
11.9M /
/ # exit
root@boot2docker:~#

2014-12-19

docker -- SliTaz base image

SliTaz base image
root@boot2docker:~# docker run mastersrp/slitaz-core slitaz
exec format error2014/12/3 21:47:32 Error response from daemon: Cannot start container 01a8cfb9e3467cbfe7a8a6d9a95d7af7c9b836a194b3fa5482016c003fcb725e: exec format error
1.
root@boot2docker:~# docker search slitaz
NAME                    DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
slitaz/slitaz-base      SliTaz base image.                              0
mastersrp/slitaz-core   A 32bit version of the core SliTaz system ...   0

2.
root@boot2docker:~# docker pull slitaz/slitaz-base
Pulling repository slitaz/slitaz-base
0bd2fd062ec7: Download complete
511136ea3c5a: Download complete
9009fa2b6f5b: Download complete
Status: Downloaded newer image for slitaz/slitaz-base:latest

3.
root@boot2docker:~# docker images
REPOSITORY           TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
slitaz/slitaz-base   latest              0bd2fd062ec7        49 minutes ago      8.778 MB

4.
root@boot2docker:~# docker run slitaz/slitaz-base slitaz
SliTaz GNU/Linux
================================================================================
Release : cooking
Architecture : x86_64
Kernel : 3.16.7-slitaz
Boot options : loglevel=3 user=docker console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10:LABEL=boot2docker-data base
Home path : /home/slitaz
Configs : /etc/slitaz
Log files : /var/log/slitaz
Packages DB : /var/lib/tazpkg
Installed : 18 packages
Mirror : /var/www/slitaz/x86_64/packages/
================================================================================
Config file: /etc/slitaz/slitaz.conf

5.
root@boot2docker:~# docker run -i -t slitaz/slitaz-base
/ # slitaz

SliTaz GNU/Linux
================================================================================
Release : cooking
Architecture : x86_64
Kernel : 3.16.7-slitaz
Boot options : loglevel=3 user=docker console=ttyS0 console=tty0 noembed nomodeset norestore waitusb=10:LABEL=boot2docker-data base
Home path : /home/slitaz
Configs : /etc/slitaz
Log files : /var/log/slitaz
Packages DB : /var/lib/tazpkg
Installed : 18 packages
Mirror : /var/www/slitaz/x86_64/packages/
================================================================================
Config file: /etc/slitaz/slitaz.conf

6.
/ # spk info
Spk info
================================================================================
Architecture : x86_64
Database : /var/lib/tazpkg/installed
Cache info : 0 /var/cache/tazpkg
Mirror URL : /var/www/slitaz/x86_64/packages/
Extra mirrors : 0
Installed : 18
================================================================================

7.
/ # cat /var/lib/tazpkg/installed.md5

89d7b86ca37af0c5746026fd937988fc  busybox-1.21.1-x86_64.tazpkg
15b6462db63b8210b004a828f9a50bd3  dialog-1.1-20110707-x86_64.tazpkg
4fd342a79636f9eaed67969a318f900b  dropbear-2013.60-x86_64.tazpkg
a9cde0c95f41ec586126756a7eb776ff  gcc-lib-base-4.6.3-x86_64.tazpkg
d125b9760c812f5ebbacd646f7dcb9e3  gettext-base-0.18.3-x86_64.tazpkg
9604ba1cdf90e7e4d51cbd323cd5196b  glibc-base-2.13-x86_64.tazpkg
cf0916594676211e54d62fd34a37423d  nano-2.2.6-x86_64.tazpkg
7bfa71e3c6c504205b00a1e0bd186866  ncurses-5.9-x86_64.tazpkg
ea531de27a5879627d60918c8547bcc1  ncurses-common-5.9-x86_64.tazpkg
4c2262ad1c2967f22fae48c676632881  ncursesw-5.9-x86_64.tazpkg
6a55e8bb0aa9c0c697bf04ecf4105ef5  retawq-0.2.6c-x86_64.tazpkg
d8581b25420a0354bd2ed5f08af162ef  slitaz-base-files-5.4.2-x86_64.tazpkg
e9ccbca78b4263d28ef1f16007c5a830  slitaz-boot-scripts-5.3.3-x86_64.tazpkg
864ba88bf6bff85a08b0f43ae0fca7cb  tazpkg-5.1-x86_64.tazpkg
838a2813c19c2d5e85953cf170f98884  ytree-1.97-x86_64.tazpkg
f1e53b247bb72fcdfd225c89f93a7e71  zlib-1.2.8-x86_64.tazpkg
9afd31e45388e5b36364458d53a682e3  util-linux-uuid-2.21.1-x86_64.tazpkg
2e2cd1a2e890b840e5cbc637e7ddd5a3  util-linux-blkid-2.21.1-x86_64.tazpkg

8.
/ # du -sh /
9.1M /
/ # exit

root@boot2docker:~# du -sh /
117.2M /

2014-12-18

docker -- slitaz64-check-config


slitaz64-check-config

root@slitaz:~# uname -a
Linux slitaz 3.16.7-slitaz #1 SMP Mon Dec 1 11:18:28 UTC 2014 x86_64 GNU/Linux

root@slitaz:~# ./check-config.sh
info: reading kernel config from /proc/config.gz ...
Generally Necessary:
- cgroup hierarchy: properly mounted [/sys/fs/cgroup]
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
- CONFIG_IPC_NS: enabled
- CONFIG_UTS_NS: enabled
- CONFIG_DEVPTS_MULTIPLE_INSTANCES: enabled
- CONFIG_CGROUPS: enabled
- CONFIG_CGROUP_CPUACCT: enabled
- CONFIG_CGROUP_DEVICE: enabled
- CONFIG_CGROUP_FREEZER: enabled
- CONFIG_CGROUP_SCHED: enabled
- CONFIG_MACVLAN: enabled
- CONFIG_VETH: enabled
- CONFIG_BRIDGE: enabled
- CONFIG_NF_NAT_IPV4: enabled
- CONFIG_IP_NF_TARGET_MASQUERADE: enabled
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: enabled
- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled
- CONFIG_NF_NAT: enabled
- CONFIG_NF_NAT_NEEDED: enabled

Optional Features:
- CONFIG_MEMCG_SWAP: enabled
- CONFIG_RESOURCE_COUNTERS: enabled
- CONFIG_CGROUP_PERF: enabled
- Storage Drivers:
 - "aufs":
    - CONFIG_AUFS_FS: enabled
    - CONFIG_EXT4_FS_POSIX_ACL: enabled
    - CONFIG_EXT4_FS_SECURITY: enabled
 - "btrfs":
    - CONFIG_BTRFS_FS: enabled
 - "devicemapper":
    - CONFIG_BLK_DEV_DM: enabled
    - CONFIG_DM_THIN_PROVISIONING: enabled
    - CONFIG_EXT4_FS: enabled
    - CONFIG_EXT4_FS_POSIX_ACL: enabled
    - CONFIG_EXT4_FS_SECURITY: enabled

2014-12-17

docker -- Linux kernel 3.16.7-slitaz



Linux kernel 3.16.7-slitaz

Linux boot2docker 3.16.7-tinycore64 #1 SMP Thu Nov 20 00:06:13 UTC 2014 x86_64 GNU/Linux

Linux version 3.16.7-tinycore64 (root@064f0e1ce709) (gcc version 4.7.2 (Debian 4.7.2-5) ) #1 SMP Thu Nov 20 00:06:13 UTC 2014

Kernel Version: 3.16.7-tinycore64


1. Linux kernel: patch aufs


2.
                        ##        .
                  ## ## ##       ==
               ## ## ## ##      ===
           /""""""""""""""""\___/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ /  ===- ~~~
           \______ o          __/
             \    \        __/
              \____\______/
 _                 _   ____     _            _
| |__   ___   ___ | |_|___ \ __| | ___   ___| | _____ _ __
| '_ \ / _ \ / _ \| __| __) / _` |/ _ \ / __| |/ / _ \ '__|
| |_) | (_) | (_) | |_ / __/ (_| | (_) | (__|   <  __/ |
|_.__/ \___/ \___/ \__|_____\__,_|\___/ \___|_|\_\___|_|

Boot2Docker version 1.3.2, build master : 495c19a - Mon Nov 24 20:40:58 UTC 2014
Docker version 1.3.2, build 39fa2fa

root@boot2docker:~# uname -a
Linux boot2docker 3.16.7-slitaz #1 SMP Mon Dec 1 11:18:28 UTC 2014 x86_64 GNU/Linux

root@boot2docker:~# dmesg | grep gcc
Linux version 3.16.7-slitaz (root@slitaz) (gcc version 4.6.3 (SliTaz) ) #1 SMP Mon Dec 1 11:18:28 UTC 2014


3.
root@boot2docker:~# docker version
Client version: 1.3.2
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): 39fa2fa
OS/Arch (client): linux/amd64
Server version: 1.3.2
Server API version: 1.15
Go version (server): go1.3.3
Git commit (server): 39fa2fa


4.
root@boot2docker:~# docker info
Containers: 4
Images: 3
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Dirs: 11
Execution Driver: native-0.2
Kernel Version: 3.16.7-slitaz
Operating System: Boot2Docker 1.3.2 (TCL 5.4); master : 495c19a - Mon Nov 24 20:40:58 UTC 2014
Debug mode (server): true
Debug mode (client): false
Fds: 11
Goroutines: 13
EventsListeners: 0
Init Path: /usr/local/bin/docker


5. 
root@boot2docker:~# lsmod
Module                  Size  Used by    Not tainted
xt_addrtype            12288  2 
xt_conntrack           12288  1 
ipt_MASQUERADE         12288  1 
iptable_nat            12288  1 
nf_conntrack_ipv4      16384  2 
nf_defrag_ipv4         12288  1 nf_conntrack_ipv4
nf_nat_ipv4            12288  1 iptable_nat
nf_nat                 16384  3 ipt_MASQUERADE,iptable_nat,nf_nat_ipv4
nf_conntrack           57344  6 xt_conntrack,ipt_MASQUERADE,iptable_nat,nf_conntrack_ipv4,nf_nat_ipv4,nf_nat
bridge                 61440  0 
stp                    12288  1 bridge
llc                    12288  2 bridge,stp
ipv6                  229376 13 bridge,[permanent]
cpufreq_conservative    12288  0 
cpufreq_stats          12288  0 
cpufreq_powersave      12288  0 
cpufreq_userspace      12288  0 
squashfs               28672  0 
loop                   20480  0 
ppdev                  12288  0 
floppy                 49152  0 
parport_pc             24576  0 
parport                28672  2 ppdev,parport_pc
intel_agp              12288  0 
intel_gtt              16384  1 intel_agp
agpgart                28672  2 intel_agp,intel_gtt
pcspkr                 12288  0 
e1000                  81920  0 
i2c_piix4              12288  0 


6.
root@boot2docker:~# modinfo nf_nat_ipv4
filename:       kernel/net/ipv4/netfilter/nf_nat_ipv4.ko
license:        GPL
alias:          nf-nat-2
depends:        nf_nat,nf_conntrack
vermagic:       3.16.7-slitaz SMP mod_unload 


7.
root@boot2docker:~# zcat /proc/config.gz | grep AUFS
CONFIG_AUFS_FS=y
# CONFIG_AUFS_BRANCH_MAX_127 is not set
# CONFIG_AUFS_BRANCH_MAX_511 is not set
# CONFIG_AUFS_BRANCH_MAX_1023 is not set
CONFIG_AUFS_BRANCH_MAX_32767=y
CONFIG_AUFS_SBILIST=y
# CONFIG_AUFS_HNOTIFY is not set
# CONFIG_AUFS_EXPORT is not set
# CONFIG_AUFS_FHSM is not set
# CONFIG_AUFS_RDU is not set
# CONFIG_AUFS_SHWH is not set
# CONFIG_AUFS_BR_RAMFS is not set
CONFIG_AUFS_BR_HFSPLUS=y
CONFIG_AUFS_BDEV_LOOP=y
# CONFIG_AUFS_DEBUG is not set
root@boot2docker:~#

docker -- mastersrp/slitaz-core: exec format error

mastersrp/slitaz-core: exec format error
40,000 "Dockerized" applications in the Docker Hub Registry
1.
root@boot2docker:~# docker search slitaz

NAME                    DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
mastersrp/slitaz-core   A 32bit version of the core SliTaz system ...   0 

2.
root@boot2docker:~# docker pull mastersrp/slitaz-core
Pulling repository mastersrp/slitaz-core
3c2cb5d63685: Download complete
Status: Downloaded newer image for mastersrp/slitaz-core:latest

3.
root@boot2docker:~# docker images

REPOSITORY              TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
mastersrp/slitaz-core   latest              3c2cb5d63685        10 weeks ago        41 MB

4.
root@boot2docker:~# docker run mastersrp/slitaz-core ls -l
exec format error2014/12/3 21:47:19 Error response from daemon: Cannot start container f8042526bcb711ff76b27b3cd4288e11373b172e690e2742f6314b91ed7b2c21: exec format error

5.
root@boot2docker:~# docker run mastersrp/slitaz-core slitaz
exec format error2014/12/3 21:47:32 Error response from daemon: Cannot start container 01a8cfb9e3467cbfe7a8a6d9a95d7af7c9b836a194b3fa5482016c003fcb725e: exec format error

6.
root@boot2docker:~# docker run -i -t mastersrp/slitaz-core /bin/sh
exec format error2014/12/3 21:48:07 Error response from daemon: Cannot start container 7b35788dd3b729c33c1a316c51c9fff1e9cbef00b2950e4d6450f17d39b21dff: exec format error
root@boot2docker:~#

2014-12-15

docker -- boot2docker


                           
boot2docker

boot2docker is a lightweight Linux distribution based on Tiny Core Linux made specifically to run Docker containers. It runs completely from RAM, weighs ~27MB and boots in ~5s (YMMV).
See Frequently asked questions for more details.

Features

  • Kernel 3.16.7 with AUFS, Docker 1.3.2
  • Container persistence via disk automount on /var/lib/docker
  • SSH keys persistence via disk automount
  • Host-only network for easy access to ports mapped by Docker

boot2docker.iso

root@boot2docker:~# uname -a
Linux boot2docker 3.16.7-tinycore64 #1 SMP Thu Nov 20 00:06:13 UTC 2014 x86_64 GNU/Linux

root@boot2docker:~# dmesg | grep gcc
Linux version 3.16.7-tinycore64 (root@064f0e1ce709) (gcc version 4.7.2 (Debian 4.7.2-5) ) #1 SMP Thu Nov 20 00:06:13 UTC 2014

root@boot2docker:~# docker version
Client version: 1.3.2
Client API version: 1.15
Go version (client): go1.3.3
Git commit (client): 39fa2fa
OS/Arch (client): linux/amd64
Server version: 1.3.2
Server API version: 1.15
Go version (server): go1.3.3
Git commit (server): 39fa2fa

root@boot2docker:~# docker info
Containers: 0
Images: 0
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Dirs: 0
Execution Driver: native-0.2
Kernel Version: 3.16.7-tinycore64
Operating System: Boot2Docker 1.3.2 (TCL 5.4); master : 495c19a - Mon Nov 24 20:40:58 UTC 2014
Debug mode (server): true
Debug mode (client): false
Fds: 10
Goroutines: 11
EventsListeners: 0
Init Path: /usr/local/bin/docker
root@boot2docker:~#

2014-12-12

docker -- tutorial


The best way to understand Docker is to try it!

 https://www.docker.com/tryit/

In this 10-minute tutorial, see how Docker works first-hand:

You'll search for and find an image another user built and shared in the Docker Hub Registry, a cloud-based collection of applications.
You'll download and run it - running images are containers - and have it output 'hello world'.
Then you'll install the 'ping' utility into the container, commit all your changes, and run a test of your updated image.
Finally, you'll push your image to the Docker Hub Registry so that other developers can find and use it...
...on a laptop, a VM in a data center, or a public cloud instance, without having to change anything at all about the image!
Welcome to the interactive Docker tutorial
you@tutorial:~$  

This emulator provides only a limited set of shell and Docker commands. 

docker -- Linux 3.8


In general, a 3.8 Linux kernel is the minimum requirement for Docker,
The latest minor version (3.x.y) of the 3.10 (or a newer maintained version) Linux kernel is recommended.
Linux namespaces & cgroups Availability:

Linux 3.8
http://kernelnewbies.org/Linux_3.8

Linux 3.8 was released on Mon, 18 Feb 2013.

This Linux release includes support in Ext4 for embedding very small files in the inode, which greatly improves the performance for these files and saves some disk space. There is also a new Btrfs feature that allows to replace quickly a disk, a new filesystem F2FS optimized for SSDs, support of filesystem mounts, UTS, IPC, PIDs, and network stack namespaces for unprivileged users, accounting of kernel memory in the memory resource controller, journal checksums in XFS, an improved NUMA policy redesign and, of course, the removal of support for 386 processors. Many small features and new drivers and fixes are also available.
  1. Prominent features in Linux 3.8
    1. Ext4 embeds very small files in the inode
    2. Btrfs fast device replacement
    3. F2FS, a SSD friendly file system
    4. User namespace support completed
    5. XFS log checksums
    6. Huge Pages support a zero page
    7. The memory resource controller supports accounting of kernel memory
    8. Automatic NUMA balancing
    9. Removal of support for 386 processors
  2. Driver and architecture-specific changes
  3. Various core changes
  4. Filesystems
  5. Block
  6. Crypto/keyring
  7. Security
  8. Perf
  9. Virtualization
  10. Networking
  11. Other news sites that track the changes of this release

1.4. User namespace support completed

Per-process namespaces allow to have different namespaces for several resources. For example, a process might see a set mountpoints, PID numbers, and network stack state, and a process in other namespace might see others. The per-process namespace support has been developed for many years: The command unshare(1), available in modern linux distros, allows to start a process with the mount, UTS, IPC or network namespaces "unshared" from its parent; and systemd uses mount namespaces for the ReadWriteDirectories, ReadOnlyDirectories or InaccessibleDirectories unit configuration options, and for systemd-nspawn. But the use of namespaces was limited only to root.
This release adds is the ability for unprivileged users to use per-process namespaces safely. The resources with namespace support available are filesystem mount points, UTS, IPC, PIDs, and network stack.
For more details about the Linux namespace support, what they are, how they work, details about the API and some example programs, you should read the article series from LWN
(The remaining namespaces will be covered in future LWN articles)

[..]

1.7. The memory resource controller supports accounting of kernel memory

The Linux memory controller is a control group that can limit, account and isolate memory usage to arbitrary groups of processes. In this release, the memory controller has got support for accounting two types uses of kernel memory usage: stack and slab usage. These limits can be useful for things like stopping fork bombs.
The files created in the control group are:
  • memory.kmem.limit_in_bytes: set/show hard limit for kernel memory
    memory.kmem.usage_in_bytes: show current kernel memory allocation
    memory.kmem.failcnt: show the number of kernel memory usage hits limits
    memory.kmem.max_usage_in_bytes: show max kernel memory usage recorded
Recommended LWN article: KS2012: memcg/mm: Improving kernel-memory accounting for memory cgroups



2014-12-11

docker -- runtime and kernel dependencies


 

Binaries

This instruction set is meant for hackers who want to try out Docker on a variety of environments.
Before following these directions, you should really check if a packaged version of Docker is already available for your distribution. We have packages for many distributions, and more keep showing up all the time!

Check runtime dependencies

To run properly, docker needs the following software to be installed at runtime:
  • iptables version 1.4 or later
  • Git version 1.7 or later
  • procps (or similar provider of a "ps" executable)
  • XZ Utils 4.9 or later
  • a properly mounted cgroupfs hierarchy (having a single, all-encompassing "cgroup" mount point is not sufficient)

Check kernel dependencies

Docker in daemon mode has specific kernel requirements. For details, check your distribution in Installation.
In general, a 3.8 Linux kernel is the minimum requirement for Docker, as some of the prior versions have known issues that are triggered by Docker. Linux kernel versions older than 3.8 are known to cause kernel panics and to break Docker.
The latest minor version (3.x.y) of the 3.10 (or a newer maintained version) Linux kernel is recommended. Keeping the kernel up to date with the latest minor version will ensure critical kernel bugs get fixed.


2014-12-10

docker -- slitaz-core64-check-config


slitaz-core64-check-config 
 
slitaz-rolling-core64.iso 2014-10-27

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

root@slitaz:/home/tux# check-config.sh
info: reading kernel config from /proc/config.gz ...
Generally Necessary:
- cgroup hierarchy: nonexistent??
(see https://github.com/tianon/cgroupfs-mount)
- CONFIG_NAMESPACES: enabled
- CONFIG_NET_NS: enabled
- CONFIG_PID_NS: enabled
- CONFIG_IPC_NS: enabled
- CONFIG_UTS_NS: enabled
- CONFIG_DEVPTS_MULTIPLE_INSTANCES: enabled
- CONFIG_CGROUPS: enabled
- CONFIG_CGROUP_CPUACCT: enabled
- CONFIG_CGROUP_DEVICE: enabled
- CONFIG_CGROUP_FREEZER: enabled
- CONFIG_CGROUP_SCHED: enabled
- CONFIG_MACVLAN: enabled
- CONFIG_VETH: enabled
- CONFIG_BRIDGE: enabled
- CONFIG_NF_NAT_IPV4: missing
- CONFIG_IP_NF_TARGET_MASQUERADE: enabled
- CONFIG_NETFILTER_XT_MATCH_ADDRTYPE: missing
- CONFIG_NETFILTER_XT_MATCH_CONNTRACK: enabled
- CONFIG_NF_NAT: enabled
- CONFIG_NF_NAT_NEEDED: enabled
Optional Features:
- CONFIG_MEMCG_SWAP: missing
- CONFIG_RESOURCE_COUNTERS: enabled
- CONFIG_CGROUP_PERF: enabled
- Storage Drivers:
- "aufs":
- CONFIG_AUFS_FS: missing
- CONFIG_EXT4_FS_POSIX_ACL: enabled
- CONFIG_EXT4_FS_SECURITY: missing
- "btrfs":
- CONFIG_BTRFS_FS: enabled
- "devicemapper":
- CONFIG_BLK_DEV_DM: enabled
- CONFIG_DM_THIN_PROVISIONING: missing
- CONFIG_EXT4_FS: enabled
- CONFIG_EXT4_FS_POSIX_ACL: enabled
- CONFIG_EXT4_FS_SECURITY: missing


Docker: Present and Future

Docker: Present and Future
http://www.infoq.com/articles/docker-future

Docker - the story so far

Docker is a toolset for Linux containers designed to ‘build, ship and run’ distributed applications. It was first released as an open source project by DotCloud in March 2013. The project quickly became popular, leading to DotCloud rebranded as Docker Inc (and ultimately selling off their original PaaS business). Docker 1.0 was released in June 2014, and the monthly release cadence that led up to the June release has been sustained since.

The 1.0 release marked the point where Docker Inc considered the platform sufficiently mature to be used in production (with the company and partners providing paid for support options). The monthly release of point updates shows that the project is still evolving quickly, adding new features, and addressing issues as they are found. The project has however successfully decoupled ‘ship’ from ‘run’, so images sourced from any version of Docker can be used with any other version (with both forward and backward compatibility), something that provides a stable foundation for Docker use despite rapid change.

The growth of Docker into one of the most popular open source projects could be perceived as hype, but there is a great deal of substance. Docker has attracted support from many brand names across the industry, including Amazon, Canonical, CenturyLink, Google, IBM, Microsoft, New Relic, Pivotal, Red Hat and VMware. This is making it almost ubiquitously available wherever Linux can be found. In addition to the big names many startups are growing up around Docker, or changing direction to be better aligned with Docker. Those partnerships (large and small) are helping to drive rapid evolution of the core project and its surrounding ecosystem.
 

A brief technical overview of Docker

Docker makes use of Linux kernel facilities such as cGroups, namespaces and SElinux to provide isolation between containers. At first Docker was a front end for the LXC container management subsystem, but release 0.9 introduced libcontainer, which is a native Go language library that provides the interface between user space and the kernel.
Containers sit on top of a union file system, such as AUFS, which allows for the sharing of components such as operating system images and installed libraries across multiple containers. The layering approach in the filesystem is also exploited by the Dockerfile DevOps tool, which is able to cache operations that have already completed successfully. This can greatly speed up test cycles by taking out the wait time usually taken to install operating systems and application dependencies. Shared libraries between containers can also reduce RAM footprint.
A container is started from an image, which may be locally created, cached locally, or downloaded from a registry. Docker Inc operates the Docker Hub public registry, which hosts official repositories for a variety of operating systems, middleware and databases. Organisations and individuals can host public repositories for images at Docker Hub, and there are also subscription services for hosting private repositories. Since an uploaded image could contain almost anything Docker Hub provides an automated build facility (that was previously called ‘trusted build’) where images are constructed from a Dockerfile that serves as a manifest for the contents of the image.
....


docker - ecosystem



docker-ecosystem
http://www.mindmeister.com/389671722/docker-ecosystem


2014-12-09

docker - aboutus


By The Numbers - 2014.12.09
https://www.docker.com/company/aboutus/
  • 16,000 GitHub stars
  • 60 million Docker Engine downloads
  • 40,000 "Dockerized" applications in the Docker Hub Registry
  • 128 Docker Meetup Groups in 43 countries
  • 700+ community contributors
  • 40,000 third-party projects on GitHub using Docker as well as partnerships spanning PaaS, operating systems, hosting services, CI platforms, and more.
  • Over 50 user-generated case studies available from companies such as eBay, Rackspace, New Relic, Gilt, Spotify, Cloudflare, Yandex, Cambridge Healthcare, Yelp and RelatelQ.

Docker

Build, Ship and Run Any App, Anywhere

Docker - An open platform for distributed applications for developers and sysadmins.
https://www.docker.com/

2014-10-27

Slitaz -- core64 / CDROM

CDROM

1.
tux@slitaz:~$ dmesg | grep -e hda -e 9660
hda: PIONEER DVD-RW DVR-K06RS, ATAPI CD/DVD-ROM drive
hda: host max PIO4 wanted PIO255(auto-tune) selected PIO4
hda: UDMA/33 mode selected
ide-cd: hda: ATAPI 24X DVD-ROM DVD-R/RAM CD-R/RW drive, 2000kB Cache
snd_hda_intel 0000:00:1b.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
snd_hda_intel 0000:00:1b.0: setting latency timer to 64
ISO 9660 Extensions: Microsoft Joliet Level 3
ISO 9660 Extensions: IEEE_P1282
tux@slitaz:~$

2.
tux@slitaz:~$ mount | grep cdrom
/dev/hda on /media/cdrom type iso9660 (ro,nosuid,nodev,noexec,relatime)

3.
tux@slitaz:~$ cat /media/cdrom/install.sh
#!/bin/sh
#

DIR=$(cd $(dirname $0); pwd)

[ -d /var/cache/tazpkg ] || mkdir -p /var/cache/tazpkg
ls -d $DIR/packages/* > /var/lib/tazpkg/mirror
ln -fs $DIR/packages/*/*.tazpkg /var/cache/tazpkg/
ln -fs $DIR/packages/*/packages.* /var/lib/tazpkg
ln -fs $DIR/packages/*/files.list.lzma /var/lib/tazpkg
[ -d /var/www ] || mkdir -p /var/www
ln -s $DIR/website /var/www
tux@slitaz:~$

Slitaz -- core64 / Audio - Intel HDA


Audio - Intel HDA
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</pre>

1.
tux@slitaz:~$ modinfo snd_hda_intel
filename:       /lib/modules/3.2.53-slitaz64/kernel/sound/pci/hda/snd-hda-intel.ko.xz
description:    Intel HDA driver
license:        GPL
alias:          pci:v00001022d*sv*sd*bc04sc03i00*
[..]

alias:          pci:v00008086d00001C20sv*sd*bc*sc*i*
depends:        snd-hda-codec,snd-pcm,snd,snd-page-alloc
intree:         Y
vermagic:       3.2.53-slitaz64 SMP mod_unload
parm:           index:Index value for Intel HD audio interface. (array of int)
parm:           id:ID string for Intel HD audio interface. (array of charp)
parm:           enable:Enable Intel HD audio interface. (array of bool)
parm:           model:Use the given board model. (array of charp)
parm:           position_fix:DMA pointer read method.(0 = auto, 1 = LPIB, 2 = POSBUF, 3 = VIACOMBO). (array of int)
parm:           bdl_pos_adj:BDL position adjustment offset. (array of int)
parm:           probe_mask:Bitmask to probe codecs (default = -1). (array of int)
parm:           probe_only:Only probing and no codec initialization. (array of int)
parm:           single_cmd:Use single command to communicate with codecs (for debugging only). (bool)
parm:           enable_msi:Enable Message Signaled Interrupt (MSI) (int)
parm:           power_save:Automatic power-saving timeout (in second, 0 = disable). (int)
parm:           power_save_controller:Reset controller in power save mode. (bool)
parm:           align_buffer_size:Force buffer and period sizes to be multiple of 128 bytes. (bool)
parm:           snoop:Enable/disable snooping (bool)
tux@slitaz:~$

2.
tux@slitaz:~$ sudo lspci -v | grep -A 10 Audio
00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 01)
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Device 4001
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at feaf8000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: [50] Power Management version 2
    Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit+
    Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
    Capabilities: [100] Virtual Channel
    Capabilities: [130] Root Complex Link
    Kernel driver in use: snd_hda_intel

3.
tux@slitaz:~$ dmesg | grep snd
snd_hda_intel 0000:00:1b.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
snd_hda_intel 0000:00:1b.0: setting latency timer to 64
tux@slitaz:~$

Slitaz -- core64 / VGA-Intel i915

VGA - Intel i915  ( 1920x1080 )

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
tux@slitaz:~$ modinfo i915
filename:       /lib/modules/3.2.53-slitaz64/kernel/drivers/gpu/drm/i915/i915.ko.xz
license:        GPL and additional rights
description:    Intel Graphics
author:         Tungsten Graphics, Inc.
license:        GPL and additional rights
alias:          pci:v00008086d0000016Asv*sd*bc03sc*i*
[..]

alias:          pci:v00008086d00003577sv*sd*bc03sc*i*
depends:        drm,drm_kms_helper,intel-gtt,i2c-core,video,button,i2c-algo-bit,intel-agp
intree:         Y
vermagic:       3.2.53-slitaz64 SMP mod_unload

parm:           invert_brightness:Invert backlight brightness (-1 force normal, 0 machine defaults, 1 force inversion), please report PCI device ID, subsystem vendor and subsystem device ID to dri-devel@lists.freedesktop.org, if your machine needs it. It will then be included in an upcoming module version. (int)
parm:           modeset:Use kernel modesetting [KMS] (0=DRM_I915_KMS from .config, 1=on, -1=force vga console preference [default]) (int)
parm:           fbpercrtc:int
parm:           panel_ignore_lid:Override lid status (0=autodetect [default], 1=lid open, -1=lid closed) (int)
parm:           powersave:Enable powersavings, fbc, downclocking, etc. (default: true) (int)
parm:           semaphores:Use semaphores for inter-ring sync (default: -1 (use per-chip defaults)) (int)
parm:           i915_enable_rc6:Enable power-saving render C-state 6 (default: -1 (use per-chip default) (int)
parm:           i915_enable_fbc:Enable frame buffer compression for power savings (default: -1 (use per-chip default)) (int)
parm:           lvds_downclock:Use panel (LVDS/eDP) downclocking for power savings (default: false) (int)
parm:           lvds_use_ssc:Use Spread Spectrum Clock with panels [LVDS/eDP] (default: auto from VBT) (int)
parm:           vbt_sdvo_panel_type:Override selection of SDVO panel mode in the VBT (default: auto) (int)
parm:           reset:Attempt GPU resets (default: true) (bool)
parm:           enable_hangcheck:Periodically check GPU activity for detecting hangs. WARNING: Disabling this can cause system wide hangs. (default: true) (bool)
tux@slitaz:~$

2.
tux@slitaz:~$ sudo lspci -v | grep -A 10 VGA
00:02.0 VGA compatible controller: Intel Corporation 4 Series Chipset Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
    Subsystem: Holco Enterprise Co, Ltd/Shuttle Computer Device 4001
    Flags: bus master, fast devsel, latency 0, IRQ 16
    Memory at fe400000 (64-bit, non-prefetchable) [size=4M]
    Memory at d0000000 (64-bit, prefetchable) [size=256M]
    I/O ports at dc00 [size=8]
    Expansion ROM at <unassigned> [disabled]
    Capabilities: [90] MSI: Enable- Count=1/1 Maskable- 64bit-
    Capabilities: [d0] Power Management version 2
    Capabilities: [a4] PCI Advanced Features
    Kernel driver in use: i915
tux@slitaz:~$

3.
tux@slitaz:~$ dmesg | grep -e i915 -e drm
[drm] Initialized drm 1.1.0 20060810
i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
i915 0000:00:02.0: setting latency timer to 64
[drm] MTRR allocation failed.  Graphics performance may suffer.
[drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[drm] Driver supports precise vblank timestamp query.
fbcon: inteldrmfb (fb0) is primary device
fb0: inteldrmfb frame buffer device
drm: registered panic notifier
[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
tux@slitaz:~$

tux@slitaz:~$ dmesg | grep i915
i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
i915 0000:00:02.0: setting latency timer to 64
[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
tux@slitaz:~$

4.
tux@slitaz:~$ grep -A 10 slitaz64 /var/log/Xorg.0.log
[     6.243] Current Operating System: Linux slitaz 3.2.53-slitaz64 #2 SMP Thu Oct 23 19:13:12 Europe 2014 x86_64
[     6.243] Kernel command line: root=/dev/sda6 autologin
[     6.243] Build Date: 22 March 2013  08:40:16AM
[     6.243] 
[     6.243] Current version of pixman: 0.28.2
[     6.243]     Before reporting problems, check http://www.slitaz.org/
    to make sure that you have the latest version.
[     6.243] Markers: (--) probed, (**) from config file, (==) default setting,
    (++) from command line, (!!) notice, (II) informational,
    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[     6.243] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Oct 25 08:36:56 2014

5.
tux@slitaz:~$ grep -A 5 FBDEV\(1 /var/log/Xorg.0.log
[     6.324] (**) FBDEV(1): claimed PCI slot 0@0:2:0
[     6.324] (II) FBDEV(1): using default device
[     6.324] (==) FBDEV(1): Depth 24, (==) framebuffer bpp 32
[     6.324] (==) FBDEV(1): RGB weight 888
[     6.324] (==) FBDEV(1): Default visual is TrueColor
[     6.324] (==) FBDEV(1): Using gamma correction (1.0, 1.0, 1.0)
[     6.324] (II) FBDEV(1): hardware: inteldrmfb (video memory: 8100kB)
[     6.324] (II) FBDEV(1): checking modes against framebuffer device...
[     6.324] (II) FBDEV(1): checking modes against monitor...
[     6.324] (--) FBDEV(1): Virtual size is 1920x1080 (pitch 1920)
[     6.324] (**) FBDEV(1):  Built-in mode "current"
[     6.324] (==) FBDEV(1): DPI set to (96, 96)
[     6.324] (II) Loading sub module "fb"
[     6.324] (II) LoadModule: "fb"
[     6.324] (II) Loading /usr/lib/X11/modules/libfb.so
[     6.329] (II) Module fb: vendor="X.Org Foundation"
[     6.329]     compiled for 1.12.1, module version = 1.0.0
--
[     6.329] (**) FBDEV(1): using shadow framebuffer
[     6.329] (II) Loading sub module "shadow"
[     6.329] (II) LoadModule: "shadow"
[     6.329] (II) Loading /usr/lib/X11/modules/libshadow.so
[     6.330] (II) Module shadow: vendor="X.Org Foundation"
[     6.330]     compiled for 1.12.1, module version = 1.1.0
tux@slitaz:~$


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
[..]