[Letux-kernel] [Lenny400] CI20: how to boot upstream kernel?

Mathieu Malaterre malat at debian.org
Fri May 10 08:08:20 CEST 2019


On Thu, May 9, 2019 at 7:38 PM H. Nikolaus Schaller <hns at goldelico.com> wrote:
>
> Hi all,
>
>
> > Am 07.05.2019 um 11:11 schrieb H. Nikolaus Schaller <hns at goldelico.com>:
> >
> > I can now boot my self-mase µSD with stone old Debian 5.0.4
> > rootfs I have taken from the Letux400/Mipsbook (jz4730 based) project. Big
> > progress. With this I now can try to make our own kernel configuration work
> > and debootstrap a more recent rootfs.
>
> I now have debootstrapped some new letux debian rootfs images and they work
> on the CI20:
>
>         http://download.goldelico.com/letux-debian-rootfs/?C=M;O=D
>
> Next I have tried to build different kernels and that works - almost.
> I can compile 4.19, 5.0 and 5.1 but only the latter two are working fine.
>
> The 4.19 kernel is stuck with
>
> [    0.968637] Waiting for root device /dev/mmcblk0p1...
>
> although the mmc driver is loaded:
>
> [    0.760598] jz4740-mmc 13460000.mmc: JZ SD/MMC card driver registered
> [    0.767091] jz4740-mmc 13460000.mmc: Using DMA, 4-bit mode
>
> Before I start a bisect to find which patch between 4.19 and 5.0 made it
> work, I better ask the CI20 specialists here first...

https://patchwork.kernel.org/project/linux-mmc/list/?submitter=179601

> > As soon as I have enabled our makesd script [2] for baking recent Debian images
> > for the CI20 (so far it only supports ca. 15 ARM based boards + Mipsbook)
> > I will let you know.
>
> For that I will need to build a working longterm kernel (i.e. 4.19.44).
>
> BR and thanks for suggestions,
> Nikolaus
>
>
> Full log:
>
> Hit any key to stop autoboot:  0
> 4671860 bytes read in 765 ms (5.8 MiB/s)
> ## Booting kernel from Legacy Image at 88000000 ...
>    Image Name:   Linux-4.19.40-letux-l400+
>    Image Type:   MIPS Linux Kernel Image (gzip compressed)
>    Data Size:    4671796 Bytes = 4.5 MiB
>    Load Address: 80010000
>    Entry Point:  8071f480
>    Verifying Checksum ... OK
>    Uncompressing Kernel Image ... OK
>
> Starting kernel ...
> [    0.000000] debug: ignoring loglevel setting.
> [    0.000000] User-defined physical RAM map:
> [    0.000000]  memory: 10000000 @ 00000000 (usable)
> [    0.000000]  memory: 30000000 @ 30000000 (usable)
> [    0.000000] Initrd not found or empty - disabling initrd
> [    0.000000] cma: Reserved 32 MiB at 0x0e000000
> [    0.000000] Primary instruction cache 32kB, VIPT, 8-way, linesize 32 bytes.
> [    0.000000] Primary data cache 32kB, 8-way, VIPT, no aliases, linesize 32 bytes
> [    0.000000] MIPS secondary cache 256kB, 8-way, linesize 128 bytes.
> [    0.000000] Zone ranges:
> [    0.000000]   Normal   [mem 0x0000000000000000-0x000000001fffffff]
> [    0.000000]   HighMem  [mem 0x0000000020000000-0x000000005fffffff]
> [    0.000000] Movable zone start for each node
> [    0.000000] Early memory node ranges
> [    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
> [    0.000000]   node   0: [mem 0x0000000030000000-0x000000005fffffff]
> [    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000005fffffff]
> [    0.000000] On node 0 totalpages: 262144
> [    0.000000]   Normal zone: 1152 pages used for memmap
> [    0.000000]   Normal zone: 0 pages reserved
> [    0.000000]   Normal zone: 65536 pages, LIFO batch:15
> [    0.000000]   HighMem zone: 196608 pages, LIFO batch:63
> [    0.000000] random: get_random_bytes called from start_kernel+0xb4/0x594 with crng_init=0
> [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
> [    0.000000] pcpu-alloc: [0] 0
> [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260992
> [    0.000000] Kernel command line: console=ttyS4,115200 console=tty0 mem=256M at 0x0 mem=768M at 0x30000000 rootwait quiet rw root=/dev/mmcblk0p1 dm9000.mac_addr=d0:31:10:ff:6e:86 earlycon console=ttyS4,115200 clk_ignore_unused ignore_loglevel
> [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
> [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
> [    0.000000] Memory: 991176K/1048576K available (7261K kernel code, 538K rwdata, 2096K rodata, 400K init, 163K bss, 24632K reserved, 32768K cma-reserved, 786432K highmem)
> [    0.000000] rcu: Preemptible hierarchical RCU implementation.
> [    0.000000]  Tasks RCU enabled.
> [    0.000000] NR_IRQS: 222
> [    0.000000] clocksource: jz4740-timer: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 9721025 ns
> [    0.000000] sched_clock: 16 bits at 3000kHz, resolution 333ns, wraps every 10922500ns
> [    0.000249] Console: colour dummy device 80x25
> [    0.006044] console [tty0] enabled
> [    0.009460] Calibrating delay loop... 956.00 BogoMIPS (lpj=4780032)
> [    0.096354] pid_max: default: 32768 minimum: 301
> [    0.101176] Security Framework initialized
> [    0.105343] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.112037] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
> [    0.120637] rcu: Hierarchical SRCU implementation.
> [    0.126290] devtmpfs: initialized
> [    0.133063] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
> [    0.143301] futex hash table entries: 256 (order: -1, 3072 bytes)
> [    0.150932] pinctrl core: initialized pinctrl subsystem
> [    0.156758] regulator-dummy: no parameters
> [    0.161872] NET: Registered protocol family 16
> [    0.224283] jz4780-dma 13420000.dma: JZ4780 DMA controller initialised
> [    0.236557] SCSI subsystem initialized
> [    0.241675] libata version 3.00 loaded.
> [    0.245786] usbcore: registered new interface driver usbfs
> [    0.252606] usbcore: registered new interface driver hub
> [    0.258143] usbcore: registered new device driver usb
> [    0.265164] jz4780-nemc 13410000.nemc: JZ4780 NEMC initialised
> [    0.272482] Advanced Linux Sound Architecture Driver Initialized.
> [    0.280483] clocksource: Switched to clocksource jz4740-timer
> [    0.366370] VFS: Disk quotas dquot_6.6.0
> [    0.370369] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
> [    0.393852] NET: Registered protocol family 2
> [    0.399765] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
> [    0.407688] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
> [    0.415430] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
> [    0.421916] TCP: Hash tables configured (established 2048 bind 2048)
> [    0.428522] UDP hash table entries: 256 (order: 0, 4096 bytes)
> [    0.434535] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
> [    0.441058] NET: Registered protocol family 1
> [    0.445866] RPC: Registered named UNIX socket transport module.
> [    0.451898] RPC: Registered udp transport module.
> [    0.456619] RPC: Registered tcp transport module.
> [    0.461404] RPC: Registered tcp NFSv4.1 backchannel transport module.
> [    0.470141] Initialise system trusted keyrings
> [    0.475460] workingset: timestamp_bits=14 max_order=18 bucket_order=4
> [    0.482377] squashfs: version 4.0 (2009/01/31) Phillip Lougher
> [    0.490809] Key type asymmetric registered
> [    0.494940] Asymmetric key parser 'x509' registered
> [    0.499906] bounce: pool size: 64 pages
> [    0.504108] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
> [    0.511759] io scheduler noop registered
> [    0.515699] io scheduler deadline registered
> [    0.520086] io scheduler cfq registered (default)
> [    0.524894] io scheduler mq-deadline registered
> [    0.529440] io scheduler kyber registered
> [    0.534772] Serial: 8250/16550 driver, 5 ports, IRQ sharing disabled
> [    0.543447] 10030000.serial: ttyS0 at MMIO 0x10030000 (irq = 59, base_baud = 3000000) is a 16550A
> [    0.553673] 10031000.serial: ttyS1 at MMIO 0x10031000 (irq = 58, base_baud = 3000000) is a 16550A
> [    0.563616] 10033000.serial: ttyS3 at MMIO 0x10033000 (irq = 56, base_baud = 3000000) is a 16550A
> [    0.573689] 10034000.serial: ttyS4 at MMIO 0x10034000 (irq = 42, base_baud = 3000000) is a 16550A
> [    0.583027] console [ttyS4] enabled
> [    0.583027] console [ttyS4] enabled
> [    0.589986] bootconsole [jz4780_uart0] disabled
> [    0.589986] bootconsole [jz4780_uart0] disabled
> [    0.600119] cacheinfo: Failed to find cpu0 device node
> [    0.605668] cacheinfo: Unable to detect cache hierarchy for CPU 0
> [    0.623290] brd: module loaded
> [    0.634800] loop: module loaded
> [    0.638952] mtdoops: mtd device (mtddev=name/number) must be supplied
> [    0.647432] libphy: Fixed MDIO Bus: probed
> [    0.652550] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
> [    0.659427] usbcore: registered new interface driver usb-storage
> [    0.666093] mousedev: PS/2 mouse device common for all mice
> [    0.672791] jz4740-rtc 10003000.rtc: rtc core: registered 10003000.rtc as rtc0
> [    0.680828] i2c /dev entries driver
> [    0.684761] IR NEC protocol handler initialized
> [    0.689336] IR RC5(x/sz) protocol handler initialized
> [    0.694611] IR RC6 protocol handler initialized
> [    0.699166] IR JVC protocol handler initialized
> [    0.703795] IR Sony protocol handler initialized
> [    0.708434] IR SANYO protocol handler initialized
> [    0.713208] IR Sharp protocol handler initialized
> [    0.717933] IR MCE Keyboard/mouse protocol handler initialized
> [    0.723841] IR XMP protocol handler initialized
> [    0.728392] Driver for 1-wire Dallas network protocol.
> [    0.760598] jz4740-mmc 13460000.mmc: JZ SD/MMC card driver registered
> [    0.767091] jz4740-mmc 13460000.mmc: Using DMA, 4-bit mode
> [    0.772904] ledtrig-cpu: registered to indicate activity on CPUs
> [    0.779556] usbcore: registered new interface driver usbhid
> [    0.785445] usbhid: USB HID core driver
> [    0.790434] oprofile: using timer interrupt.
> [    0.795595] Initializing XFRM netlink socket
> [    0.799963] NET: Registered protocol family 17
> [    0.804553] NET: Registered protocol family 15
> [    0.809105] 9pnet: Installing 9P2000 support
> [    0.813560] Key type dns_resolver registered
> [    0.819018] Loading compiled-in X.509 certificates
> [    0.830812] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x88
> [    0.837206] nand: Micron MT29F64G08CBAAAWP
> [    0.841391] nand: 8192 MiB, MLC, erase size: 2048 KiB, page size: 8192, OOB size: 448
> [    0.849287] jz4780-nand 1b000000.nand-controller: using hardware BCH (strength 24, size 1024, bytes 42)
> [    0.859766] random: fast init done
> [    0.864096] Bad block table found at page 1048320, version 0x01
> [    0.872837] Bad block table found at page 1048064, version 0x01
> [    0.880217] nand_read_bbt: bad block at 0x00000b400000
> [    0.885422] nand_read_bbt: bad block at 0x00000b600000
> [    0.890670] nand_read_bbt: bad block at 0x0001e6000000
> [    0.896114] 5 fixed-partitions partitions found on MTD device 1b000000.nand-controller.1
> [    0.904309] Creating 5 MTD partitions on "1b000000.nand-controller.1":
> [    0.910906] 0x000000000000-0x000000800000 : "u-boot-spl"
> [    0.917486] 0x000000800000-0x000000a00000 : "u-boot"
> [    0.923837] 0x000000a00000-0x000000c00000 : "u-boot-env"
> [    0.930390] 0x000000c00000-0x000004c00000 : "boot"
> [    0.936495] 0x000004c00000-0x000200000000 : "system"
> [    0.947785] jz4740-rtc 10003000.rtc: setting system clock to 2019-05-09 15:25:45 UTC (1557415545)
> [    0.957453] clk: Not disabling unused clocks
> [    0.961876] ALSA device list:
> [    0.964865]   No soundcards found.
> [    0.968637] Waiting for root device /dev/mmcblk0p1...
> [    8.390504] random: crng init done
>


More information about the Letux-kernel mailing list