Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: andriusr on February 15, 2015, 04:08:25 AM

Title: Bootcodes of Picore6.0
Post by: andriusr on February 15, 2015, 04:08:25 AM
Hi all,
have beginner question. There is wide description of bootcodes that picore supports, however, I have difficulty to find what they are for Picore-6.0 how they can be edited. Checked several locations that are mentioned on forum, but it seems that something has changed since then:
1. On SD card (or inside piCore-6.0-SSH.img) file there is cmdline.txt file but codes here seems to be not piCore codes, but probably, general tc codes.
2. In several places there is mentioning that cmdline.txt is located in /mnt/mmcblkp01 . But on my system this location is empty. No files at all.
Any help is welcome...
Title: Re: Bootcodes of Picore6.0
Post by: bmarkus on February 15, 2015, 04:29:00 AM
/dev/mmcblk0p1 is a boot partition and not used by the system later ther4efore it is not mounted. In the reminal issue

Code: [Select]
sudo mount /dev/mmcblk0p1
to mount and when finished, unmount for safety reasons:

Code: [Select]
sudo umount /dev/mmcblk0p2
There are no specific piCore boot codes. Bootcodes are normal Linux codes, RPi specific same as Raspbian (USB and serial line config) or TC codes.
Title: Re: Bootcodes of Picore6.0
Post by: andriusr on February 15, 2015, 04:57:02 AM
Thanks for reply.
the second command probably should be
Code: [Select]
sudo umount /dev/mmcblk0p1I am seeing cmdline.txt now.
However, where all codes like
NOZSWAP=, WAITUSB= etc. are located? They are not in cmdline.txt... What values are used by default?
Title: Re: Bootcodes of Picore6.0
Post by: bmarkus on February 15, 2015, 07:04:28 AM
Yes, there was a typo in umount, it is mmcblk0p1

waitusb is not needed.   nozswap is not there because zsap enabled by default.
Title: Re: Bootcodes of Picore6.0
Post by: andriusr on February 15, 2015, 07:38:10 AM
Sorry for asking too many questions. 

How about other tinycore boot codes tha tare listed in /usr/share/doc/tc/bootOptions.txt?

Quote
tce={hda1|sda1}            Specify Restore TCE apps directory
restore={hda1|sda1|floppy} Specify saved configuration location
waitusb=X                  Wait X seconds for slow USB devices
swapfile{=hda1}            Scan or Specify swapfile
home={hda1|sda1}           Specify persistent home directory
opt={hda1|sda1}            Specify persistent opt directory
local={hda1|sda1}          Specify PPI directory or loopback file
lst=yyy.lst                Load alternate static yyy.lst on boot
mydata=yyyy                Specify alternate backup file name
base                       Skip TCE load only the base system
norestore                  Turn off the automatic restore
safebackup                 Saves a backup copy (mydatabk.tgz)
showapps                   Display application names when booting
vga=7xx                    7xx from table (See below)
xsetup                     Prompt user for Xvesa setup
lang=en                    C only unless getlocale.tcz is installed
kmap=us                    US only unless kmaps.tcz is installed
text                       Textmode
superuser                  Textmode as user root
noicons                    Do not use icons
noswap                     Do not use swap partition
nodhcp                     Skip the dhcp request at boot
noutc                      BIOS is using localtime
pause                      Pause at completion of boot messages

Are any of these supported? Are these of any use?

One less related to boot code question: I am wondering how do you pack sshd into piCore-6.0-SSH.zip file... I unpacked everything, including 6.0.gz but could not locate it anywhere. But ssh works out of the box... I am trying to build image that woudl contain some other files, so could you provide idea how you doing it with ssh?
Title: Re: Bootcodes of Picore6.0
Post by: bmarkus on February 15, 2015, 09:08:38 AM
openssh is in the openssh.tcz extension, see /tce/optional directory.

Read core concept at http://tinycorelinux.net/concepts.html and the Core Book to learn Tiny Core basics:

http://distro.ibiblio.org/tinycorelinux/corebook.pdf

Title: Re: Bootcodes of Picore6.0
Post by: roborob on February 15, 2015, 10:00:07 AM
Hi,

I highly recommend the book bmarkus mentioned. Into the Core  A loot at Tiny Core Linux by Lauri Kasanen (et al).
Title: Re: Bootcodes of Picore6.0
Post by: andriusr on February 15, 2015, 12:51:46 PM
bmarkus,
sure I read all the books and still reading them. The issue that they are about tinycore, while some details of picore are different, like bootcodes.
Once picore image is copied into sd card and booted, i can find openssh, for sure. My question was why it is not visible in piCore-6.0-SSH.zip file (at least I could not find it anywhere when I unpack zip into img, then 6.0.gz and 6.0(without extension) files).
Is there some hidden partition/file inside img file that is not visible on my system (I am using MacOSX)?
Title: Re: Bootcodes of Picore6.0
Post by: bmarkus on February 15, 2015, 01:03:41 PM
bmarkus,
sure I read all the books and still reading them. The issue that they are about tinycore, while some details of picore are different, like bootcodes.

What is your issue with boot codes? As I already wrote, there are board specific codes, same as in Raspbian, like USB settings and serial line. These are not used in x86 version, right. Do not touch them. All others are generic TC boot codes. There are no piCore specific codes! Read the book, read FAQ about boot codes.

My question was why it is not visible in piCore-6.0-SSH.zip file (at least I could not find it anywhere when I unpack zip into img, then 6.0.gz and 6.0(without extension) files).

.img is an SD card image. As soon as you boot it, you will see openssh.tcz in /mnt/mmcblk0p2/tce/optional, but was also wrote earlier.

And finally. Please read the book, how TC works.



Title: Re: Bootcodes of Picore6.0
Post by: andriusr on February 16, 2015, 05:49:38 AM
Thanks for explanations. I am trying to build small headless web server with FastCGI, controlled trough SSH. The specifics is that I need fast boot time and nearly real time performance (in other words, the web server should produce as little CPU load as possible when not in use). I managed to install apache with mod_fcgid, compiled fcgi-2.4.1 library ( how can I can contribute tcz to repository?), got demo fcgi programs running on server.
So, I am wondering how I can speed up boot time - boot codes might help to disable services that I do not need. For example, I am not sure if I need compressed swap file or if I need swap file at all. Load to web server would never exeed 1 request/s or something like that. If that would help to reduce boot time, I can disable it.
Also, if I specify all persistent locations, how much I can save? Any other thoughs are welcome...
Title: Re: Bootcodes of Picore6.0
Post by: Rich on February 16, 2015, 07:58:06 AM
Hi andriusr
The first you should do is mention how long you currently take to boot and what boot time you are shooting for to see if your goal is
realistic. Then add the boot codes:
Code: [Select]
printk.time=1 syslogThis will add timing information to  dmesg  and  /var/log/messages  allowing you to see how long everything takes to complete. You
might also consider one of the smaller web servers available in Pi, see:
http://forum.tinycorelinux.net/index.php/topic,17183.msg103084.html#msg103084
http://forum.tinycorelinux.net/index.php/topic,16983.msg101835.html#msg101835
http://forum.tinycorelinux.net/index.php/topic,16226.msg96194.html#top
Quote
Also, if I specify all persistent locations, how much I can save?
All? Only /home and /opt can be persistent which can save time during backup and restore, especially if many and or large files are
involved. Things like /etc and /usr are built dynamically at boot time and can not be persistent.
Title: Re: Bootcodes of Picore6.0
Post by: andriusr on February 16, 2015, 09:48:49 AM
Hi Rich,
thanks for information, really useful. Mongoose is intersting, it is not available in 6.0 repository yet, but probably I can compile it. It does not support fcgi, but probably cgi support would be enough, since I can use cgi-fcgi bridge from FastCGI that I managed to compile. cgi-fcgi adds some overhead, but maybe that will be acceptable.
Lighhttpd provides FastCGI support, but again is not available in repository. Have to look if I can compile it.
Regarding boot times I would expect something between 5-10 sec. I searched on forum, but there is very little data (maybe no data at all) about typical boot times of headless configuration.
Regarding persistence, I have one question. I know that /opt and /home are persistent, and I can add extra locations to .filetool.lst. But then I need to execute filetool.sh periodically to save data (using cron for example). What if I save my data directly to location on mmcblk0p2 and then add lines to bootlocal.sh to copy required files (also files that are on .filetool.lst). In this case I probably can specify norestore boot code (and hope that it will save some time). Would that work?
Title: Re: Bootcodes of Picore6.0
Post by: andriusr on February 16, 2015, 10:29:31 AM
Tested boot time on virgin SSH image (only added nano for text files editing).
Total boot time is ~16sec, including:
~5 sec for basic start up.
~5.5 sec for mounting of file images (hpefully this can be improved by making one big tcz file containing all files?)
~1.5 sec for ini of eth0 interface
~4 sec till start of SSH server listening on port 22.
Swap file creation takes, for exapmple ~1.5 sec.
Title: Re: Bootcodes of Picore6.0
Post by: Rich on February 16, 2015, 10:35:57 AM
Hi andriusr
Quote
But then I need to execute filetool.sh periodically to save data (using cron for example). What if I save my data directly to location on mmcblk0p2 and then add lines to bootlocal.sh to copy required files (also files that are on .filetool.lst). In this case I probably can specify norestore boot code (and hope that it will save some time). Would that work?
That depends on what you mean by "data". Configuration files should be handled using  .filetool.lst  since they tend to be static once set up.
For the web server you could set up a working directory under /opt or /home to hold any scripts, web pages, etc.
Title: Re: Bootcodes of Picore6.0
Post by: Rich on February 16, 2015, 10:41:18 AM
Hi andriusr
Quote
~5.5 sec for mounting of file images (hpefully this can be improved by making one big tcz file containing all files?)
More than likely it the creation of the links back into the /usr directory thats taking most of that time, not the mounting process. Smaller
extensions such as monkey or mongoose as opposed to apache would probably help more.
Title: Re: Bootcodes of Picore6.0
Post by: andriusr on February 16, 2015, 10:42:38 AM
Rich,
by data I mean non-static data that web server have to store somewhere. They should be non-volatile on sudden power loss. I would have no time to execute filetool.sh in such a scenario.
Title: Re: Bootcodes of Picore6.0
Post by: Rich on February 16, 2015, 10:44:39 AM
Hi andriusr
Then set up your WWW directory under /opt or /home.
Title: Re: Bootcodes of Picore6.0
Post by: andriusr on February 16, 2015, 11:31:43 AM
Quote
Then set up your WWW directory under /opt or /home.
How about sudden power loss? How the data will be recoved? As I understand from documentation, to save it permanently you have to execure filetool.sh...
Title: Re: Bootcodes of Picore6.0
Post by: Rich on February 16, 2015, 11:36:36 AM
Hi andriusr
You make the /opt and /home directories persistent. That means they are on your flash storage device, not in the RAM based file system.
Title: Re: Bootcodes of Picore6.0
Post by: bmarkus on February 16, 2015, 11:55:18 AM
Tested boot time on virgin SSH image (only added nano for text files editing).
Total boot time is ~16sec, including:
~5 sec for basic start up.
~5.5 sec for mounting of file images (hpefully this can be improved by making one big tcz file containing all files?)
~1.5 sec for ini of eth0 interface
~4 sec till start of SSH server listening on port 22.
Swap file creation takes, for exapmple ~1.5 sec.

You can disable ZSWAP in RAM and use SWAP partition on the SD card or run system without any swap space, depending on your application.

In your measurement there is the SSH key generation which happenes only once when you start system first expecting you backup generated keys.

Merging tcz's into one big extension you can save loop mounting time and dependcy resolution, but the most time consuming is symlinking which will remain the same.

Moving extensions to initrd may help also.
Title: Re: Bootcodes of Picore6.0
Post by: curaga on February 16, 2015, 01:53:26 PM
Expecting 5s total for a rpi is really unrealistic, that is taken almost just by initial bootloader + kernel.
Title: Re: Bootcodes of Picore6.0
Post by: bmarkus on February 16, 2015, 10:41:32 PM
Expecting 5s total for a rpi is really unrealistic, that is taken almost just by initial bootloader + kernel.

Do you mean 5s is too high or too low?
Title: Re: Bootcodes of Picore6.0
Post by: curaga on February 17, 2015, 12:14:07 AM
If just kernel and the gpu bootloader take it, the total boot time must be more.
Title: Re: Bootcodes of Picore6.0
Post by: bmarkus on February 17, 2015, 12:40:24 AM
OK, lets see dmesg. Hardware is RPi Model-B. Booting piCore base only, no other partitions on the SD card, no extensions, only external device connected is HDMI monitor and keyboard.

Kernel 3.12.36+, zswap enabled (default cmdline options):

Code: [Select]
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.12.36-piCore+ (root@beta.hasix.org) (gcc version 4.9.1 (crosstool-NG 1.20.0) ) #1 PREEMPT Mon Jan 19 22:46:45 CET 2015
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: BCM2708
[    0.000000] cma: CMA: reserved 8 MiB at 1b800000
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 114688
[    0.000000] free_area_init_node: node 0, pgdat c06304f0, node_mem_map c0d96000
[    0.000000]   Normal zone: 896 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 114688 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113792
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=1024 bcm2708.boardrev=0xe bcm2708.serial=0x7d40730a smsc95xx.macaddr=B8:27:EB:40:73:0A bcm2708_fb.fbswap=1 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/ram0 elevator=deadline rootwait nortc loglevel=3 noembed
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 435788K/458752K available (4531K kernel code, 260K rwdata, 1364K rodata, 145K init, 702K bss, 22964K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xdc800000 - 0xff000000   ( 552 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05c9f28   (5896 kB)
[    0.000000]       .init : 0xc05ca000 - 0xc05ee64c   ( 146 kB)
[    0.000000]       .data : 0xc05f0000 - 0xc0631040   ( 261 kB)
[    0.000000]        .bss : 0xc063104c - 0xc06e0908   ( 703 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:522
[    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[    0.000000] Switching to timer-based delay loop
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty1] enabled
[    0.000614] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.000634] pid_max: default: 32768 minimum: 301
[    0.001137] Mount-cache hash table entries: 512
[    0.001957] Initializing cgroup subsys memory
[    0.002039] Initializing cgroup subsys devices
[    0.002056] Initializing cgroup subsys freezer
[    0.002069] Initializing cgroup subsys blkio
[    0.002198] CPU: Testing write buffer coherency: ok
[    0.002617] Setting up static identity map for 0xc0450b58 - 0xc0450bb4
[    0.004481] devtmpfs: initialized
[    0.020571] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.022113] NET: Registered protocol family 16
[    0.027517] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.028127] cpuidle: using governor ladder
[    0.028148] cpuidle: using governor menu
[    0.028654] bcm2708.uart_clock = 0
[    0.030535] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.030555] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.030568] mailbox: Broadcom VideoCore Mailbox driver
[    0.030641] bcm2708_vcio: mailbox at f200b880
[    0.030721] bcm_power: Broadcom power driver
[    0.030739] bcm_power_open() -> 0
[    0.030748] bcm_power_request(0, 8)
[    0.531457] bcm_mailbox_read -> 00000080, 0
[    0.531473] bcm_power_request -> 0
[    0.531720] Serial: AMBA PL011 UART driver
[    0.531861] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    0.532208] console [ttyAMA0] enabled
[    0.554503] bio: create slab <bio-0> at 0
[    0.555887] SCSI subsystem initialized
[    0.556087] usbcore: registered new interface driver usbfs
[    0.556172] usbcore: registered new interface driver hub
[    0.556424] usbcore: registered new device driver usb
[    0.557921] Switched to clocksource stc
[    0.558274] FS-Cache: Loaded
[    0.558575] CacheFiles: Loaded
[    0.571012] NET: Registered protocol family 2
[    0.572505] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.572645] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.572744] TCP: Hash tables configured (established 4096 bind 4096)
[    0.572824] TCP: reno registered
[    0.572847] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.572878] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.573339] NET: Registered protocol family 1
[    0.573901] RPC: Registered named UNIX socket transport module.
[    0.573926] RPC: Registered udp transport module.
[    0.573936] RPC: Registered tcp transport module.
[    0.573945] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.574259] Trying to unpack rootfs image as initramfs...
[    1.051784] Freeing initrd memory: 3668K (c0a00000 - c0d95000)
[    1.067683] bcm2708_dma: DMA manager at f2007000
[    1.067791] bcm2708_gpio: bcm2708_gpio_probe c05fdf10
[    1.068323] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.069616] audit: initializing netlink socket (disabled)
[    1.069701] type=2000 audit(1.060:1): initialized
[    1.232939] zbud: loaded
[    1.233442] VFS: Disk quotas dquot_6.5.2
[    1.233761] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.235850] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.236272] FS-Cache: Netfs 'nfs' registered for caching
[    1.237822] NFS: Registering the id_resolver key type
[    1.238001] Key type id_resolver registered
[    1.238019] Key type id_legacy registered
[    1.238763] msgmni has been set to 874
[    1.240892] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.241215] io scheduler noop registered
[    1.241238] io scheduler deadline registered (default)
[    1.241545] io scheduler cfq registered
[    1.242882] BCM2708FB: allocated DMA memory 5bc00000
[    1.242947] BCM2708FB: allocated DMA channel 0 @ f2007000
[    1.258636] Console: switching to colour frame buffer device 160x64
[    1.270258] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[    1.270611] uart-pl011 dev:f1: no DMA platform data
[    1.271249] vc-cma: Videocore CMA driver
[    1.271269] vc-cma: vc_cma_base      = 0x00000000
[    1.271281] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.271291] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.280847] brd: module loaded
[    1.286008] loop: module loaded
[    1.286348] vchiq: vchiq_init_state: slot_zero = 0xdb800000, is_master = 0
[    1.287456] Loading iSCSI transport class v2.0-870.
[    1.288621] usbcore: registered new interface driver smsc95xx
[    1.288710] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.488903] Core Release: 2.80a
[    1.488934] Setting default values for core params
[    1.488975] Finished setting default values for core params
[    1.689055] Using Buffer DMA mode
[    1.689082] Periodic Transfer Interrupt Enhancement - disabled
[    1.689094] Multiprocessor Interrupt Enhancement - disabled
[    1.689106] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.689122] Dedicated Tx FIFOs mode
[    1.689492] WARN::dwc_otg_hcd_init:1042: FIQ DMA bounce buffers: virt = 0xdbc14000 dma = 0x5bc14000 len=9024
[    1.689528] FIQ FSM acceleration enabled for :
[    1.689528] Non-periodic Split Transactions
[    1.689528] Periodic Split Transactions
[    1.689528] High-Speed Isochronous Endpoints
[    1.689555] dwc_otg: Microframe scheduler enabled
[    1.689613] WARN::hcd_init:473: FIQ at 0xc032aa24
[    1.689630] WARN::hcd_init:474: FIQ ASM at 0xc032acd8 length 36
[    1.689659] WARN::hcd_init:500: MPHI regs_base at 0xdc806000
[    1.689689] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.689743] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.689802] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.689840] Init: Port Power? op_state=1
[    1.689850] Init: Power Port (0)
[    1.690182] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.690206] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.690221] usb usb1: Product: DWC OTG Controller
[    1.690236] usb usb1: Manufacturer: Linux 3.12.36-piCore+ dwc_otg_hcd
[    1.690250] usb usb1: SerialNumber: bcm2708_usb
[    1.691108] hub 1-0:1.0: USB hub found
[    1.691196] hub 1-0:1.0: 1 port detected
[    1.691681] dwc_otg: FIQ enabled
[    1.691698] dwc_otg: NAK holdoff enabled
[    1.691709] dwc_otg: FIQ split-transaction FSM enabled
[    1.691730] Module dwc_common_port init
[    1.692204] usbcore: registered new interface driver usb-storage
[    1.692556] mousedev: PS/2 mouse device common for all mice
[    1.693221] bcm2835-cpufreq: min=700000 max=900000 cur=700000
[    1.693327] bcm2835-cpufreq: switching to governor ondemand
[    1.693342] bcm2835-cpufreq: switching to governor ondemand
[    1.694788] sdhci: Secure Digital Host Controller Interface driver
[    1.694802] sdhci: Copyright(c) Pierre Ossman
[    1.694973] DMA channels allocated for the MMC driver
[    1.727958] Load BCM2835 MMC driver
[    1.728089] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.728114] ledtrig-cpu: registered to indicate activity on CPUs
[    1.728206] hidraw: raw HID events driver (C) Jiri Kosina
[    1.730456] usbcore: registered new interface driver usbhid
[    1.730468] usbhid: USB HID core driver
[    1.736341] zram: Created 1 device(s) ...
[    1.736805] TCP: cubic registered
[    1.736820] Initializing XFRM netlink socket
[    1.736849] NET: Registered protocol family 17
[    1.736975] Key type dns_resolver registered
[    1.740096] registered taskstats version 1
[    1.740147] vc-sm: Videocore shared memory driver
[    1.740163] [vc_sm_connected_init]: start
[    1.744911] [vc_sm_connected_init]: end - returning 0
[    1.748098] Freeing unused kernel memory: 144K (c05ca000 - c05ee000)
[    1.786139] mmc0: host does not support reading read-only switch. assuming write-enable.
[    1.788995] mmc0: new high speed SDHC card at address b368
[    1.794394] mmcblk0: mmc0:b368 SMI   3.74 GiB
[    1.795743]  mmcblk0: p1
[    1.888230] Indeed it is in host mode hprt0 = 00021501
[    2.128146] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.128323] Indeed it is in host mode hprt0 = 00001101
[    2.398334] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.398359] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.399070] hub 1-1:1.0: USB hub found
[    2.399185] hub 1-1:1.0: 3 ports detected
[    2.678171] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.778360] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.778371] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.781180] smsc95xx v1.0.4
[    2.848599] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:40:73:0a
[    2.928234] usb 1-1.2: new low-speed USB device number 4 using dwc_otg
[    3.043986] usb 1-1.2: New USB device found, idVendor=04f3, idProduct=0103
[    3.044011] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.068714] input: HID 04f3:0103 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0/input/input0
[    3.069040] hid-generic 0003:04F3:0103.0001: input,hidraw0: USB HID v1.11 Keyboard [HID 04f3:0103] on usb-bcm2708_usb-1.2/input0
[    3.087116] input: HID 04f3:0103 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.1/input/input1
[    3.087412] hid-generic 0003:04F3:0103.0002: input,hidraw1: USB HID v1.11 Device [HID 04f3:0103] on usb-bcm2708_usb-1.2/input1
[    3.142020] bcm2708_i2c_init_pinmode(1,2)
[    3.142041] bcm2708_i2c_init_pinmode(1,3)
[    3.142525] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100000)
[    3.198769] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated
[    3.208676] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[    3.624082] Adding 106900k swap on /dev/zram0.  Priority:-1 extents:1 across:106900k SSFS
[    5.664060] bcm2835-cpufreq: switching to governor ondemand
[    5.664088] bcm2835-cpufreq: switching to governor ondemand
[    5.748296] i2c /dev entries driver
[    5.790079] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[    7.289782] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1


Title: Re: Bootcodes of Picore6.0
Post by: bmarkus on February 17, 2015, 12:41:48 AM
Kernel 3.18.6+, zswap enabled (default cmdline options):

Code: [Select]
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.18.6-piCore+ (root@beta.hasix.org) (gcc version 4.9.1 (crosstool-NG 1.20.0) ) #1 PREEMPT Sun Feb 8 01:08:30 CET 2015
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine model: Raspberry Pi Model B
[    0.000000] cma: Reserved 8 MiB at 0x1b400000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 114688
[    0.000000] free_area_init_node: node 0, pgdat c085fb1c, node_mem_map db080000
[    0.000000]   Normal zone: 896 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 114688 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113792
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=1024 bcm2708.boardrev=0xe bcm2708.serial=0x7d40730a smsc95xx.macaddr=B8:27:EB:40:73:0A bcm2708_fb.fbswap=1 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/ram0 elevator=deadline rootwait nortc loglevel=3 noembed
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 433364K/458752K available (5986K kernel code, 358K rwdata, 1888K rodata, 340K init, 734K bss, 25388K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xdc800000 - 0xff000000   ( 552 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07b8af4   (7875 kB)
[    0.000000]       .init : 0xc07b9000 - 0xc080e000   ( 340 kB)
[    0.000000]       .data : 0xc080e000 - 0xc0867b8c   ( 359 kB)
[    0.000000]        .bss : 0xc0867b8c - 0xc091f508   ( 735 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:522
[    0.000027] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483648000ns
[    0.000076] Switching to timer-based delay loop, resolution 1000ns
[    0.000366] Console: colour dummy device 80x30
[    0.000584] console [tty1] enabled
[    0.000613] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.000638] pid_max: default: 32768 minimum: 301
[    0.001016] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001042] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002022] Initializing cgroup subsys memory
[    0.002077] Initializing cgroup subsys devices
[    0.002112] Initializing cgroup subsys freezer
[    0.002142] Initializing cgroup subsys net_cls
[    0.002169] Initializing cgroup subsys blkio
[    0.002263] CPU: Testing write buffer coherency: ok
[    0.002345] ftrace: allocating 19659 entries in 58 pages
[    0.104568] Setting up static identity map for 0x56b230 - 0x56b28c
[    0.107329] devtmpfs: initialized
[    0.126352] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.129499] pinctrl core: initialized pinctrl subsystem
[    0.132018] NET: Registered protocol family 16
[    0.137564] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.164345] cpuidle: using governor ladder
[    0.194400] cpuidle: using governor menu
[    0.194970] bcm2708.uart_clock = 3000000
[    0.197977] No ATAGs?
[    0.198029] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.198047] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.198087] mailbox: Broadcom VideoCore Mailbox driver
[    0.198230] bcm2708_vcio: mailbox at f200b880
[    0.198665] bcm_power: Broadcom power driver
[    0.198693] bcm_power_open() -> 0
[    0.198705] bcm_power_request(0, 8)
[    0.699431] bcm_mailbox_read -> 00000080, 0
[    0.699452] bcm_power_request -> 0
[    0.699635] Serial: AMBA PL011 UART driver
[    0.699846] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    0.700248] console [ttyAMA0] enabled
[    0.767979] SCSI subsystem initialized
[    0.768305] usbcore: registered new interface driver usbfs
[    0.768440] usbcore: registered new interface driver hub
[    0.768623] usbcore: registered new device driver usb
[    0.770723] Switched to clocksource stc
[    0.799716] FS-Cache: Loaded
[    0.800150] CacheFiles: Loaded
[    0.817017] NET: Registered protocol family 2
[    0.818485] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.818590] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.818690] TCP: Hash tables configured (established 4096 bind 4096)
[    0.818781] TCP: reno registered
[    0.818808] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.818841] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.819221] NET: Registered protocol family 1
[    0.819893] RPC: Registered named UNIX socket transport module.
[    0.819924] RPC: Registered udp transport module.
[    0.819937] RPC: Registered tcp transport module.
[    0.819948] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.820396] Trying to unpack rootfs image as initramfs...
[    1.314366] Freeing initrd memory: 3772K (dbc41000 - dbff0000)
[    1.333827] bcm2708_dma: DMA manager at f2007000
[    1.334065] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.335595] futex hash table entries: 256 (order: -1, 3072 bytes)
[    1.335743] audit: initializing netlink subsys (disabled)
[    1.335847] audit: type=2000 audit(1.260:1): initialized
[    1.350241] zpool: loaded
[    1.351519] VFS: Disk quotas dquot_6.5.2
[    1.351917] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.354363] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.355050] FS-Cache: Netfs 'nfs' registered for caching
[    1.356858] NFS: Registering the id_resolver key type
[    1.356982] Key type id_resolver registered
[    1.357002] Key type id_legacy registered
[    1.358396] msgmni has been set to 869
[    1.361339] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.361808] io scheduler noop registered
[    1.361848] io scheduler deadline registered (default)
[    1.362255] io scheduler cfq registered
[    1.364901] BCM2708FB: allocated DMA memory 5b800000
[    1.364973] BCM2708FB: allocated DMA channel 0 @ f2007000
[    1.384001] Console: switching to colour frame buffer device 160x64
[    1.398291] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[    1.398779] uart-pl011 dev:f1: no DMA platform data
[    1.399571] vc-cma: Videocore CMA driver
[    1.399598] vc-cma: vc_cma_base      = 0x00000000
[    1.399611] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.399623] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.413772] brd: module loaded
[    1.421300] loop: module loaded
[    1.422500] zram: Created 1 device(s) ...
[    1.422975] vchiq: vchiq_init_state: slot_zero = 0xdb400000, is_master = 0
[    1.424198] Loading iSCSI transport class v2.0-870.
[    1.425645] usbcore: registered new interface driver smsc95xx
[    1.425765] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.626089] Core Release: 2.80a
[    1.626127] Setting default values for core params
[    1.626175] Finished setting default values for core params
[    1.826386] Using Buffer DMA mode
[    1.826415] Periodic Transfer Interrupt Enhancement - disabled
[    1.826428] Multiprocessor Interrupt Enhancement - disabled
[    1.826442] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.826461] Dedicated Tx FIFOs mode
[    1.826902] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xdb814000 dma = 0x5b814000 len=9024
[    1.826940] FIQ FSM acceleration enabled for :
[    1.826940] Non-periodic Split Transactions
[    1.826940] Periodic Split Transactions
[    1.826940] High-Speed Isochronous Endpoints
[    1.826971] dwc_otg: Microframe scheduler enabled
[    1.827048] WARN::hcd_init_fiq:412: FIQ on core 0 at 0xc0410fc4
[    1.827070] WARN::hcd_init_fiq:413: FIQ ASM at 0xc04112a0 length 36
[    1.827105] WARN::hcd_init_fiq:438: MPHI regs_base at 0xdc80a000
[    1.827140] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.827206] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.827277] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.827324] Init: Port Power? op_state=1
[    1.827337] Init: Power Port (0)
[    1.827784] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.827813] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.827831] usb usb1: Product: DWC OTG Controller
[    1.827848] usb usb1: Manufacturer: Linux 3.18.6-piCore+ dwc_otg_hcd
[    1.827864] usb usb1: SerialNumber: bcm2708_usb
[    1.829041] hub 1-0:1.0: USB hub found
[    1.829157] hub 1-0:1.0: 1 port detected
[    1.829868] dwc_otg: FIQ enabled
[    1.829890] dwc_otg: NAK holdoff enabled
[    1.829903] dwc_otg: FIQ split-transaction FSM enabled
[    1.829965] Module dwc_common_port init
[    1.830551] usbcore: registered new interface driver usb-storage
[    1.831159] mousedev: PS/2 mouse device common for all mice
[    1.832159] bcm2835-cpufreq: min=700000 max=700000
[    1.832528] sdhci: Secure Digital Host Controller Interface driver
[    1.832548] sdhci: Copyright(c) Pierre Ossman
[    1.832807] DMA channels allocated for the MMC driver
[    1.870798] Load BCM2835 MMC driver
[    1.871059] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.879175] ledtrig-cpu: registered to indicate activity on CPUs
[    1.879422] hidraw: raw HID events driver (C) Jiri Kosina
[    1.879789] usbcore: registered new interface driver usbhid
[    1.879810] usbhid: USB HID core driver
[    1.880214] TCP: cubic registered
[    1.880247] Initializing XFRM netlink socket
[    1.880306] NET: Registered protocol family 17
[    1.880533] Key type dns_resolver registered
[    1.888940] registered taskstats version 1
[    1.891482] vc-sm: Videocore shared memory driver
[    1.891516] [vc_sm_connected_init]: start
[    1.896117] [vc_sm_connected_init]: end - returning 0
[    1.898688] Freeing unused kernel memory: 340K (c07b9000 - c080e000)
[    1.929009] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.931284] mmc0: new high speed SDHC card at address b368
[    1.941103] mmcblk0: mmc0:b368 SMI   3.74 GiB
[    1.942724]  mmcblk0: p1
[    2.021101] Indeed it is in host mode hprt0 = 00021501
[    2.291096] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.291327] Indeed it is in host mode hprt0 = 00001101
[    2.571558] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.571616] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.572899] hub 1-1:1.0: USB hub found
[    2.573079] hub 1-1:1.0: 3 ports detected
[    2.851062] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.951583] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.951622] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.954940] smsc95xx v1.0.4
[    3.020039] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:40:73:0a
[    3.101047] usb 1-1.2: new low-speed USB device number 4 using dwc_otg
[    3.210351] usb 1-1.2: New USB device found, idVendor=04f3, idProduct=0103
[    3.210391] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.227403] input: HID 04f3:0103 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:04F3:0103.0001/input/input0
[    3.231084] hid-generic 0003:04F3:0103.0001: input,hidraw0: USB HID v1.11 Keyboard [HID 04f3:0103] on usb-bcm2708_usb-1.2/input0
[    3.261981] input: HID 04f3:0103 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:04F3:0103.0002/input/input1
[    3.262431] hid-generic 0003:04F3:0103.0002: input,hidraw1: USB HID v1.11 Device [HID 04f3:0103] on usb-bcm2708_usb-1.2/input1
[    4.841444] zram0: detected capacity change from 0 to 108363776
[    4.859762] random: mkswap urandom read with 87 bits of entropy available
[    4.893571] Adding 105820k swap on /dev/zram0.  Priority:-1 extents:1 across:105820k SSFS
[    7.875769] i2c /dev entries driver
[    7.931162] random: nonblocking pool is initialized
[    7.942111] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[    9.483134] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Title: Re: Bootcodes of Picore6.0
Post by: bmarkus on February 17, 2015, 12:42:57 AM
Kernel 3.18.6+, with nozswap:

Code: [Select]
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.18.6-piCore+ (root@beta.hasix.org) (gcc version 4.9.1 (crosstool-NG 1.20.0) ) #1 PREEMPT Sun Feb 8 01:08:30 CET 2015
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine model: Raspberry Pi Model B
[    0.000000] cma: Reserved 8 MiB at 0x1b400000
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 114688
[    0.000000] free_area_init_node: node 0, pgdat c085fb1c, node_mem_map db080000
[    0.000000]   Normal zone: 896 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 114688 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113792
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=1280 bcm2708_fb.fbheight=1024 bcm2708.boardrev=0xe bcm2708.serial=0x7d40730a smsc95xx.macaddr=B8:27:EB:40:73:0A bcm2708_fb.fbswap=1 sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/ram0 elevator=deadline rootwait nortc loglevel=3 noembed nozswap
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 433364K/458752K available (5986K kernel code, 358K rwdata, 1888K rodata, 340K init, 734K bss, 25388K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xdc800000 - 0xff000000   ( 552 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc07b8af4   (7875 kB)
[    0.000000]       .init : 0xc07b9000 - 0xc080e000   ( 340 kB)
[    0.000000]       .data : 0xc080e000 - 0xc0867b8c   ( 359 kB)
[    0.000000]        .bss : 0xc0867b8c - 0xc091f508   ( 735 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:522
[    0.000025] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483648000ns
[    0.000076] Switching to timer-based delay loop, resolution 1000ns
[    0.000366] Console: colour dummy device 80x30
[    0.000584] console [tty1] enabled
[    0.000613] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.000639] pid_max: default: 32768 minimum: 301
[    0.001020] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001048] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002032] Initializing cgroup subsys memory
[    0.002088] Initializing cgroup subsys devices
[    0.002122] Initializing cgroup subsys freezer
[    0.002151] Initializing cgroup subsys net_cls
[    0.002178] Initializing cgroup subsys blkio
[    0.002273] CPU: Testing write buffer coherency: ok
[    0.002353] ftrace: allocating 19659 entries in 58 pages
[    0.104510] Setting up static identity map for 0x56b230 - 0x56b28c
[    0.107282] devtmpfs: initialized
[    0.126371] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    0.129534] pinctrl core: initialized pinctrl subsystem
[    0.132060] NET: Registered protocol family 16
[    0.137684] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.164288] cpuidle: using governor ladder
[    0.194348] cpuidle: using governor menu
[    0.194950] bcm2708.uart_clock = 3000000
[    0.197960] No ATAGs?
[    0.198011] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.198028] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.198069] mailbox: Broadcom VideoCore Mailbox driver
[    0.198212] bcm2708_vcio: mailbox at f200b880
[    0.198647] bcm_power: Broadcom power driver
[    0.198674] bcm_power_open() -> 0
[    0.198686] bcm_power_request(0, 8)
[    0.699411] bcm_mailbox_read -> 00000080, 0
[    0.699432] bcm_power_request -> 0
[    0.699618] Serial: AMBA PL011 UART driver
[    0.699829] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83, base_baud = 0) is a PL011 rev3
[    0.700232] console [ttyAMA0] enabled
[    0.767914] SCSI subsystem initialized
[    0.768247] usbcore: registered new interface driver usbfs
[    0.768379] usbcore: registered new interface driver hub
[    0.768563] usbcore: registered new device driver usb
[    0.770692] Switched to clocksource stc
[    0.799691] FS-Cache: Loaded
[    0.800122] CacheFiles: Loaded
[    0.816973] NET: Registered protocol family 2
[    0.818451] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.818556] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.818657] TCP: Hash tables configured (established 4096 bind 4096)
[    0.818747] TCP: reno registered
[    0.818775] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.818808] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.819189] NET: Registered protocol family 1
[    0.819859] RPC: Registered named UNIX socket transport module.
[    0.819890] RPC: Registered udp transport module.
[    0.819903] RPC: Registered tcp transport module.
[    0.819915] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.820361] Trying to unpack rootfs image as initramfs...
[    1.316012] Freeing initrd memory: 3772K (dbc41000 - dbff0000)
[    1.335643] bcm2708_dma: DMA manager at f2007000
[    1.335880] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.337416] futex hash table entries: 256 (order: -1, 3072 bytes)
[    1.337565] audit: initializing netlink subsys (disabled)
[    1.337669] audit: type=2000 audit(1.260:1): initialized
[    1.352349] zpool: loaded
[    1.353411] VFS: Disk quotas dquot_6.5.2
[    1.353807] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.356253] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.356939] FS-Cache: Netfs 'nfs' registered for caching
[    1.358740] NFS: Registering the id_resolver key type
[    1.358857] Key type id_resolver registered
[    1.358877] Key type id_legacy registered
[    1.360270] msgmni has been set to 869
[    1.363368] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.363766] io scheduler noop registered
[    1.363806] io scheduler deadline registered (default)
[    1.364206] io scheduler cfq registered
[    1.366866] BCM2708FB: allocated DMA memory 5b800000
[    1.366939] BCM2708FB: allocated DMA channel 0 @ f2007000
[    1.385549] Console: switching to colour frame buffer device 160x64
[    1.400019] bcm2708-dmaengine bcm2708-dmaengine: Load BCM2835 DMA engine driver
[    1.400508] uart-pl011 dev:f1: no DMA platform data
[    1.401468] vc-cma: Videocore CMA driver
[    1.401494] vc-cma: vc_cma_base      = 0x00000000
[    1.401507] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.401518] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.415440] brd: module loaded
[    1.423008] loop: module loaded
[    1.424200] zram: Created 1 device(s) ...
[    1.424670] vchiq: vchiq_init_state: slot_zero = 0xdb400000, is_master = 0
[    1.425914] Loading iSCSI transport class v2.0-870.
[    1.427356] usbcore: registered new interface driver smsc95xx
[    1.427476] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.627802] Core Release: 2.80a
[    1.627840] Setting default values for core params
[    1.627889] Finished setting default values for core params
[    1.828104] Using Buffer DMA mode
[    1.828133] Periodic Transfer Interrupt Enhancement - disabled
[    1.828146] Multiprocessor Interrupt Enhancement - disabled
[    1.828160] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.828179] Dedicated Tx FIFOs mode
[    1.828624] WARN::dwc_otg_hcd_init:1047: FIQ DMA bounce buffers: virt = 0xdb814000 dma = 0x5b814000 len=9024
[    1.828662] FIQ FSM acceleration enabled for :
[    1.828662] Non-periodic Split Transactions
[    1.828662] Periodic Split Transactions
[    1.828662] High-Speed Isochronous Endpoints
[    1.828694] dwc_otg: Microframe scheduler enabled
[    1.828766] WARN::hcd_init_fiq:412: FIQ on core 0 at 0xc0410fc4
[    1.828788] WARN::hcd_init_fiq:413: FIQ ASM at 0xc04112a0 length 36
[    1.828823] WARN::hcd_init_fiq:438: MPHI regs_base at 0xdc80a000
[    1.828859] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.828925] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.828997] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.829045] Init: Port Power? op_state=1
[    1.829058] Init: Power Port (0)
[    1.829507] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.829537] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.829556] usb usb1: Product: DWC OTG Controller
[    1.829572] usb usb1: Manufacturer: Linux 3.18.6-piCore+ dwc_otg_hcd
[    1.829588] usb usb1: SerialNumber: bcm2708_usb
[    1.830945] hub 1-0:1.0: USB hub found
[    1.831064] hub 1-0:1.0: 1 port detected
[    1.831776] dwc_otg: FIQ enabled
[    1.831799] dwc_otg: NAK holdoff enabled
[    1.831812] dwc_otg: FIQ split-transaction FSM enabled
[    1.831871] Module dwc_common_port init
[    1.832464] usbcore: registered new interface driver usb-storage
[    1.832913] mousedev: PS/2 mouse device common for all mice
[    1.833915] bcm2835-cpufreq: min=700000 max=700000
[    1.834296] sdhci: Secure Digital Host Controller Interface driver
[    1.834316] sdhci: Copyright(c) Pierre Ossman
[    1.834567] DMA channels allocated for the MMC driver
[    1.870770] Load BCM2835 MMC driver
[    1.871033] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.878150] ledtrig-cpu: registered to indicate activity on CPUs
[    1.878392] hidraw: raw HID events driver (C) Jiri Kosina
[    1.878757] usbcore: registered new interface driver usbhid
[    1.878778] usbhid: USB HID core driver
[    1.879182] TCP: cubic registered
[    1.879215] Initializing XFRM netlink socket
[    1.879274] NET: Registered protocol family 17
[    1.879519] Key type dns_resolver registered
[    1.887939] registered taskstats version 1
[    1.890501] vc-sm: Videocore shared memory driver
[    1.890536] [vc_sm_connected_init]: start
[    1.895160] [vc_sm_connected_init]: end - returning 0
[    1.897760] Freeing unused kernel memory: 340K (c07b9000 - c080e000)
[    1.929082] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.931480] mmc0: new high speed SDHC card at address b368
[    1.941821] mmcblk0: mmc0:b368 SMI   3.74 GiB
[    1.943629]  mmcblk0: p1
[    2.031103] Indeed it is in host mode hprt0 = 00021501
[    2.291074] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.291311] Indeed it is in host mode hprt0 = 00001101
[    2.571541] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.571600] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.572934] hub 1-1:1.0: USB hub found
[    2.573130] hub 1-1:1.0: 3 ports detected
[    2.851012] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.951507] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.951545] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.954871] smsc95xx v1.0.4
[    3.018619] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:40:73:0a
[    3.101107] usb 1-1.2: new low-speed USB device number 4 using dwc_otg
[    3.217214] usb 1-1.2: New USB device found, idVendor=04f3, idProduct=0103
[    3.217253] usb 1-1.2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.234262] input: HID 04f3:0103 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:04F3:0103.0001/input/input0
[    3.241156] hid-generic 0003:04F3:0103.0001: input,hidraw0: USB HID v1.11 Keyboard [HID 04f3:0103] on usb-bcm2708_usb-1.2/input0
[    3.261972] input: HID 04f3:0103 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:04F3:0103.0002/input/input1
[    3.262495] hid-generic 0003:04F3:0103.0002: input,hidraw1: USB HID v1.11 Device [HID 04f3:0103] on usb-bcm2708_usb-1.2/input1
[    7.636535] random: nonblocking pool is initialized
[    9.384370] i2c /dev entries driver
[    9.402908] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   10.895765] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
Title: Re: Bootcodes of Picore6.0
Post by: curaga on February 17, 2015, 01:07:05 AM
So in all cases, the kernel took 3s. How long did the bootloader take?
Title: Re: Bootcodes of Picore6.0
Post by: bmarkus on February 17, 2015, 02:13:10 AM
So in all cases, the kernel took 3s. How long did the bootloader take?

Do not know how to measure, at least in home environment  :(

First GPU is started, than CPU is booted by GPU, see boot process:

http://wiki.beyondlogic.org/index.php?title=Understanding_RaspberryPi_Boot_Process
 
I do not find reference how long it takes, but it is not under our control. Few secs.
Title: Re: Bootcodes of Picore6.0
Post by: andriusr on February 17, 2015, 09:11:01 AM
Interesting enough, on my Rpi B+ bootcode nozswap makes booting by 1s longer (13 s instead of 12s). Any idea why?
Title: Re: Bootcodes of Picore6.0
Post by: andriusr on February 21, 2015, 11:46:29 PM
One more question about bootcodes.
When I create extra ext4 partition on SD card (mmcblk0p3), it is not mouted automatically at the boot. Each time after reboot I have to remount it. Is there way to mount it automatically.
Ideally, I would like to be able to use tce directory located on mmcblk0p3 with tce=mmcblk0p3/tce code, but now it does not works since this partition is not even monted.
Title: Re: Bootcodes of Picore6.0
Post by: bmarkus on February 22, 2015, 12:10:59 AM
I would like to be able to use tce directory located on mmcblk0p3 with tce=mmcblk0p3/tce code, but now it does not works since this partition is not even monted.

If there are no /tce dirs on mmcblk0p1 nor mmcblk0p2 only on mmcblk0p3 system will use it automatically, no need for bootcode.
Title: Re: Bootcodes of Picore6.0
Post by: andriusr on February 22, 2015, 12:29:17 AM
When I move tce to mmcblk0p3 (so no tce on mmcblk0p3), Rpi boots but SSH server is not started  (I am using 6.0-SSH image). I have to look why it happens.
Title: Re: Bootcodes of Picore6.0
Post by: andriusr on February 22, 2015, 01:31:40 AM
Bmarkus,
Found the problem, the files were not properly copied to mmcblk0p3 for some reason. Now it works as you sugessted.
Title: Re: Bootcodes of Picore6.0
Post by: andriusr on February 28, 2015, 08:56:10 AM
Would like to report what boot time shortening one can expect with modified initrd file.
I managed to create initrd file that includes all SSH image tcz plus web server stack (lighttpd, fastcgi etc.) with total size of ~12MB. All files are loaded to RAM during boot, only the mydata.tgz is in persistent location. RAM usage is ~44 MB after boot.
It takes ~10 sec till ethernet port is ready (the LEDs on thernet port lights up after ~8 s or so):
Quote
Jan  1 00:00:10 (none) user.info kernel: [   10.008339] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1
Title: Re: Bootcodes of Picore6.0
Post by: bkm on March 20, 2015, 07:06:47 AM
andriusr,

I see in your last message you are using lighttpd and loading it straight to ram on boot. Where did you get the lighttpd package to use in your picore 6.0 system? I have been looking for it and cannot find it. I am upgrading a bunch of custom translator boxes to the rpi and all of my current running code is dependent on lighttpd. Ant help in finding it would be appreciated.

I am also looking for vsftpd. It was also important to my old boxes (200 of them) running tinycore version 3.8.4. The old hardware is no longer available and I didn't mind locking everything down to the old 3.x versions at the time because everything I use is in a closed system. Now I have to start replacing dead hardware and the rpi makes the most sense.

However, I really do not want to rewrite everything I have for alternate packages if I can find the lighttpd and vsftpd extensions to use in 6.0. Any direction you can point me would be very appreciated.

Thanks,

BKM
Title: Re: Bootcodes of Picore6.0
Post by: bmarkus on March 23, 2015, 05:32:59 AM
lighttpd.tcz is added to piCore repos.
Title: Re: Bootcodes of Picore6.0
Post by: andriusr on April 04, 2015, 12:29:06 AM
andriusr,

I see in your last message you are using lighttpd and loading it straight to ram on boot. Where did you get the lighttpd package to use in your picore 6.0 system? I have been looking for it and cannot find it. I am upgrading a bunch of custom translator boxes to the rpi and all of my current running code is dependent on lighttpd. Ant help in finding it would be appreciated.

I am also looking for vsftpd. It was also important to my old boxes (200 of them) running tinycore version 3.8.4. The old hardware is no longer available and I didn't mind locking everything down to the old 3.x versions at the time because everything I use is in a closed system. Now I have to start replacing dead hardware and the rpi makes the most sense.

However, I really do not want to rewrite everything I have for alternate packages if I can find the lighttpd and vsftpd extensions to use in 6.0. Any direction you can point me would be very appreciated.

Thanks,

BKM

Sorry for late reply. I compiled lighttpd by myself, but since bmarkus added lighttpd to repository your problem seems to be solved.
I tested also version bmarkus compiled and there was one caveat that I needed to specify path where lighttpd modules are located when starting it. Like that:
Code: [Select]
sudo lighttpd -m /usr/local/lib/lighttpd -f /opt/lighttpd.confBy default lighttpd looks for modules in /usr/local/lib, not in /usr/local/lib/lighttpd