Cannot boot from Trimslice with Kernel 4.2.2-1

Discussion about U-Boot and the kernel.

Cannot boot from Trimslice with Kernel 4.2.2-1

Postby dan64 » Fri Oct 16, 2015 4:40 pm

I have decided to install the new rootfs for Trimslice using :

http://os.archlinuxarm.org/os/tegra/ArchLinuxARM-2015.10-trimslice-rootfs.tar.gz

That contain the Kernel 4.2.2-1.

My U-Boot version is quite old : U-Boot 1.01 (Jul 11 2011 - 17:59:32)

Doesn't support the zImage and dts. Following the forum suggestion I have created a classic uImage with the following commands:

$this->bbcode_second_pass_code('', '
cat zImage dtbs/tegra20-trimslice.dtb > myImage
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n "Linux Kernel" -d myImage uImage
')

the boot.scr contain the following script

$this->bbcode_second_pass_code('', '
if test -n ${fs} && test -n ${interface} && test -n ${device} && test -n ${bus} && test -n ${loadaddr} && test -n ${prefix}; then

setenv memory mem=384M@0M mem=512M@512M nvmem=128M@384M
setenv video vmalloc=248M video=tegrafb
setenv console console=ttyS0,115200n8

if test "${interface}" = "mmc" && test "${bus}" = "1"; then
echo booting from internal microSD
setenv rootfs rw root=/dev/mmcblk0p1
elif test "${interface}" = "mmc" && test "${bus}" = "0"; then

echo booting from external SD
if mmc init 1; then
setenv rootfs rw root=/dev/mmcblk1p1 rootwait
else
setenv rootfs rw root=/dev/mmcblk0p1 rootwait
fi

mmc init 0

elif test "${interface}" = "usb" && test "${bus}" = "1"; then
echo booting from internal SSD
setenv rootfs rw root=/dev/sda1 nohdparm rootwait
else
echo booting from external USB
setenv rootfs rw root=/dev/sdb1 nohdparm rootwait
fi

setenv bootargs ${memory} ${video} ${console} ${rootfs}

echo bootargs ${memory} ${video} ${console} ${rootfs}
echo image ${fs}load ${interface} ${device} ${loadaddr} ${prefix}uImage

${fs}load ${interface} ${device} ${loadaddr} ${prefix}uImage
bootm ${loadaddr}
fi

echo "boot information not recieved from u-boot, scanning for startup device"

echo Scanning MMC card ...;
setenv interface mmc; setenv interface_init_cmd init; setenv device 0;
setenv bus 0; run start_bus; run scan_device;
echo Scanning USB key ...;
setenv interface usb; setenv interface_init_cmd start; setenv device 0;
setenv bus 0; run start_bus; run scan_device;
echo Scanning microSD card ...;
setenv interface mmc; setenv interface_init_cmd init; setenv device 1;
setenv bus 1; run start_bus; run scan_device;
echo Scanning SSD ...;
setenv interface usb; setenv interface_init_cmd start; setenv device 0;
setenv bus 1; run start_bus; run scan_device;
')

The Kernel is loaded by U-Boot but stop to work after attaching the [sda] device (that contains the Kernel). Here I have attached the full output:

$this->bbcode_second_pass_code('', '
U-Boot 1.01 (Jul 11 2011 - 17:59:32)

TEGRA2
Board: TrimSlice
DRAM: 1 GiB
SF: Detected W25Q80BL with page size 256, total 1 MiB
In: serial
Out: serial
Err: serial
Boot: Spi
Net: RTL8169#0
Hit any key to stop autoboot: 0
Scanning MMC card ...
[mmc_legacy_init:234] EMMC 0 Probe Failed
No MMC card found
Scanning fat mmc 0 on prefix / ...

** Invalid boot device **
Scanning ext2 mmc 0 on prefix / ...
** Block device mmc 0 not supported
Scanning fat mmc 0 on prefix /boot/ ...

** Invalid boot device **
Scanning ext2 mmc 0 on prefix /boot/ ...
** Block device mmc 0 not supported
Scanning USB key ...
(Re)start USB...
USB: Tegra ehci init hccr c5008100 and hcor c5008140 hc_length 64
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Scanning fat usb 0 on prefix / ...
reading /boot.scr

** Unable to read "/boot.scr" from usb 0:1 **
Scanning ext2 usb 0 on prefix / ...
Loading file "/boot.scr" from usb device 0:1 (usbda1)
** File not found /boot.scr
Scanning fat usb 0 on prefix /boot/ ...
reading /boot/boot.scr

** Unable to read "/boot/boot.scr" from usb 0:1 **
Scanning ext2 usb 0 on prefix /boot/ ...
Loading file "/boot/boot.scr" from usb device 0:1 (usbda1)
1932 bytes read
boot.scr found! Executing ...
## Executing script at 00408000
starting boot.scr
booting from external USB
bootargs mem=384M@0M mem=512M@512M nvmem=128M@384M vmalloc=248M video=tegrafb console=ttyS0,115200n8 rw root=/dev/sdb1 nohdparm rootwait
image ext2load usb 0 0x408000 /boot/uImage
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
5011273 bytes read
## Booting kernel from Legacy Image at 00408000 ...
Image Name: Linux kernel
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 5011209 Bytes = 4.8 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.2.2-1-ARCH (builduser@leming) (gcc version 5.2.0 (GCC) ) #1 SMP Wed Sep 30 18:45:49 MDT 2015
[ 0.000000] CPU: ARMv7 Processor [411fc090] revision 0 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: Compulab TrimSlice board
[ 0.000000] cma: Reserved 24 MiB at 0x3e800000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] PERCPU: Embedded 12 pages/cpu @eeec5000 s19392 r8192 d21568 u49152
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 227666
[ 0.000000] Kernel command line: mem=384M@0M mem=512M@512M nvmem=128M@384M vmalloc=248M video=tegrafb console=ttyS0,115200n8 rw root=/dev/sdb1 nohdparm rootwait
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 865968K/917504K available (10236K kernel code, 1196K rwdata, 4324K rodata, 1140K init, 923K bss, 26960K reserved, 24576K cma-reserved, 245760K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0000000 - 0xff000000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xef800000 ( 760 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0e403c0 (14561 kB)
[ 0.000000] .init : 0xc0e41000 - 0xc0f5e000 (1140 kB)
[ 0.000000] .data : 0xc0f5e000 - 0xc10891a0 (1197 kB)
[ 0.000000] .bss : 0xc108c000 - 0xc1172e5c ( 924 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] GIC physical location is 0x50041000
[ 0.000000] /interrupt-controller@60004000: 128 interrupts forwarded to /interrupt-controller@50041000
[ 0.000000] L2C: platform modifies aux control register: 0x02080000 -> 0x3e480001
[ 0.000000] L2C: DT/platform modifies aux control register: 0x02080000 -> 0x3e480001
[ 0.000000] L2C-310 errata 727915 769419 enabled
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] L2C-310: enabling full line of zeros but not enabled in Cortex-A9
[ 0.000000] L2C-310 ID prefetch enabled, offset 1 lines
[ 0.000000] L2C-310 cache controller enabled, 8 ways, 1024 kB
[ 0.000000] L2C-310: CACHE_ID 0x410000c4, AUX_CTRL 0x7e480001
[ 0.000011] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[ 0.000031] clocksource: timer_us: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[ 0.000043] Switching to timer-based delay loop, resolution 1000ns
[ 0.002279] Console: colour dummy device 80x30
[ 0.002305] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=5000)
[ 0.002317] pid_max: default: 32768 minimum: 301
[ 0.002427] Security Framework initialized
[ 0.002567] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.002578] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.003170] Initializing cgroup subsys blkio
[ 0.003185] Initializing cgroup subsys memory
[ 0.003218] Initializing cgroup subsys devices
[ 0.003232] Initializing cgroup subsys freezer
[ 0.003244] Initializing cgroup subsys net_cls
[ 0.003256] Initializing cgroup subsys perf_event
[ 0.003267] Initializing cgroup subsys net_prio
[ 0.003308] CPU: Testing write buffer coherency: ok
[ 0.003347] ftrace: allocating 37577 entries in 111 pages
[ 0.056409] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.056527] Setting up static identity map for 0x8280 - 0x8318
[ 0.058396] Tegra Revision: A03 prime SKU: 8 CPU Process: 1 Core Process: 2
[ 0.059408] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.059480] Brought up 2 CPUs
[ 0.059494] SMP: Total of 2 processors activated (4.00 BogoMIPS).
[ 0.059500] CPU: All CPU(s) started in SVC mode.
[ 0.060069] devtmpfs: initialized
[ 0.066675] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 1
[ 0.067245] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302231375000 ns
[ 0.068920] xor: measuring software checksum speed
[ 0.114884] arm4regs : 1490.400 MB/sec
[ 0.164885] 8regs : 1140.000 MB/sec
[ 0.214882] 32regs : 1204.000 MB/sec
[ 0.214890] xor: using function: arm4regs (1490.400 MB/sec)
[ 0.214986] pinctrl core: initialized pinctrl subsystem
[ 0.216104] NET: Registered protocol family 16
[ 0.218478] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.231013] No ATAGs?
[ 0.231043] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.231051] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.232727] Serial: AMBA PL011 UART driver
[ 0.340138] raid6: int32x1 gen() 129 MB/s
[ 0.425061] raid6: int32x1 xor() 167 MB/s
[ 0.510165] raid6: int32x2 gen() 179 MB/s
[ 0.594899] raid6: int32x2 xor() 158 MB/s
[ 0.679915] raid6: int32x4 gen() 184 MB/s
[ 0.764926] raid6: int32x4 xor() 140 MB/s
[ 0.849957] raid6: int32x8 gen() 178 MB/s
[ 0.934958] raid6: int32x8 xor() 127 MB/s
[ 0.934966] raid6: using algorithm int32x4 gen() 184 MB/s
[ 0.934972] raid6: .... xor() 140 MB/s, rmw enabled
[ 0.934977] raid6: using intx1 recovery algorithm
[ 0.937644] usb1_vbus: Failed to request enable GPIO170: -517
[ 0.937740] reg-fixed-voltage regulators:regulator@2: Failed to register regulator: -517
[ 0.942426] vgaarb: loaded
[ 0.943296] SCSI subsystem initialized
[ 0.943721] usbcore: registered new interface driver usbfs
[ 0.943785] usbcore: registered new interface driver hub
[ 0.943838] usbcore: registered new device driver usb
[ 0.946206] media: Linux media interface: v0.10
[ 0.946272] Linux video capture interface: v2.00
[ 0.946363] pps_core: LinuxPPS API ver. 1 registered
[ 0.946371] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.946397] PTP clock support registered
[ 0.946449] EDAC MC: Ver: 3.0.0
[ 0.947551] Advanced Linux Sound Architecture Driver Initialized.
[ 0.948085] NetLabel: Initializing
[ 0.948093] NetLabel: domain hash size = 128
[ 0.948098] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.948140] NetLabel: unlabeled traffic allowed by default
[ 0.948509] clocksource: Switched to clocksource timer_us
[ 1.018964] NET: Registered protocol family 2
[ 1.019690] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 1.019764] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 1.019871] TCP: Hash tables configured (established 8192 bind 8192)
[ 1.019976] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 1.020036] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 1.020245] NET: Registered protocol family 1
[ 1.020525] RPC: Registered named UNIX socket transport module.
[ 1.020534] RPC: Registered udp transport module.
[ 1.020540] RPC: Registered tcp transport module.
[ 1.020546] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.021528] hw perfevents: Failed to parse /pmu/interrupt-affinity[0]
[ 1.021569] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 1.023120] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 1.028940] zpool: loaded
[ 1.029331] VFS: Disk quotas dquot_6.6.0
[ 1.029478] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.030880] NFS: Registering the id_resolver key type
[ 1.030915] Key type id_resolver registered
[ 1.030922] Key type id_legacy registered
[ 1.030946] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.036393] bounce: pool size: 64 pages
[ 1.036563] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 1.036676] io scheduler noop registered
[ 1.036689] io scheduler deadline registered
[ 1.036827] io scheduler cfq registered (default)
[ 1.044905] tegra-pcie 80003000.pcie-controller: dual-mode configuration
[ 1.045552] tegra-pcie 80003000.pcie-controller: probing port 0, using 2 lanes
[ 1.128255] tegra-pcie 80003000.pcie-controller: PCI host bridge to bus 0000:00
[ 1.128270] pci_bus 0000:00: root bus resource [mem 0xa0000000-0xa7ffffff]
[ 1.128281] pci_bus 0000:00: root bus resource [mem 0xa8000000-0xbfffffff pref]
[ 1.128291] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 1.128299] pci_bus 0000:00: root bus resource [io 0x1000-0xffff]
[ 1.128367] pci 0000:00:01.0: IOMMU is currently not supported for PCI
[ 1.128651] PCI: bus0: Fast back to back transfers disabled
[ 1.128663] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.128926] pci 0000:01:00.0: IOMMU is currently not supported for PCI
[ 1.129179] PCI: bus1: Fast back to back transfers disabled
[ 1.129261] pci 0000:00:01.0: BAR 8: assigned [mem 0xa0000000-0xa00fffff]
[ 1.129275] pci 0000:00:01.0: BAR 9: assigned [mem 0xa8000000-0xa80fffff 64bit pref]
[ 1.129286] pci 0000:00:01.0: BAR 7: assigned [io 0x1000-0x1fff]
[ 1.129300] pci 0000:01:00.0: BAR 6: assigned [mem 0xa0000000-0xa001ffff pref]
[ 1.129312] pci 0000:01:00.0: BAR 4: assigned [mem 0xa8000000-0xa8003fff 64bit pref]
[ 1.129330] pci 0000:01:00.0: BAR 2: assigned [mem 0xa8004000-0xa8004fff 64bit pref]
[ 1.129348] pci 0000:01:00.0: BAR 0: assigned [io 0x1000-0x10ff]
[ 1.129360] pci 0000:00:01.0: PCI bridge to [bus 01]
[ 1.129370] pci 0000:00:01.0: bridge window [io 0x1000-0x1fff]
[ 1.129380] pci 0000:00:01.0: bridge window [mem 0xa0000000-0xa00fffff]
[ 1.129390] pci 0000:00:01.0: bridge window [mem 0xa8000000-0xa80fffff 64bit pref]
[ 1.129410] pci 0000:00:01.0: nv_msi_ht_cap_quirk didn't locate host bridge
[ 1.129481] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[ 1.129654] pcieport 0000:00:01.0: Signaling PME through PCIe PME interrupt
[ 1.129665] pci 0000:01:00.0: Signaling PME through PCIe PME interrupt
[ 1.131097] tegra-ahb 6000c004.ahb: incorrect AHB base address in DT data - enabling workaround
[ 1.133096] tegra-apbdma 6000a000.dma: Tegra20 APB DMA driver register 16 channels
[ 1.193544] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[ 1.195541] Serial: AMBA driver
[ 1.196804] console [ttyS0] disabled
[ 1.196961] 70006000.serial: ttyS0 at MMIO 0x70006000 (irq = 279, base_baud = 13500000) is a Tegra
[ 2.199236] console [ttyS0] enabled
[ 2.203805] [drm] Initialized drm 1.1.0 20060810
[ 2.213938] loop: module loaded
[ 2.218341] Loading iSCSI transport class v2.0-870.
[ 2.223661] iscsi: registered transport (tcp)
[ 2.232891] tegra-phy c5004000.usb-phy: no vbus regulator
[ 2.239432] tegra-phy c5008000.usb-phy: no vbus regulator
[ 2.246104] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.252646] ehci-pci: EHCI PCI platform driver
[ 2.257156] ehci-platform: EHCI generic platform driver
[ 2.262558] ehci-mxc: Freescale On-Chip EHCI Host driver
[ 2.267952] ehci-omap: OMAP-EHCI Host Controller driver
[ 2.273289] ehci-orion: EHCI orion driver
[ 2.277424] ehci-exynos: EHCI EXYNOS driver
[ 2.281744] tegra-ehci: Tegra EHCI driver
[ 2.304873] ulpi_phy_power_on: ulpi write failed
[ 2.309500] tegra-ehci c5004000.usb: Failed to power on the phy
[ 2.315436] tegra-ehci: probe of c5004000.usb failed with error -110
[ 2.324447] tegra-ehci c5008000.usb: EHCI Host Controller
[ 2.330014] tegra-ehci c5008000.usb: new USB bus registered, assigned bus number 1
[ 2.337833] tegra-ehci c5008000.usb: irq 290, io mem 0xc5008000
[ 2.353534] tegra-ehci c5008000.usb: USB 2.0 started, EHCI 1.00
[ 2.359621] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.366415] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.373636] usb usb1: Product: EHCI Host Controller
[ 2.378514] usb usb1: Manufacturer: Linux 4.2.2-1-ARCH ehci_hcd
[ 2.384432] usb usb1: SerialNumber: c5008000.usb
[ 2.389597] hub 1-0:1.0: USB hub found
[ 2.393369] hub 1-0:1.0: 1 port detected
[ 2.397708] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 2.403933] ohci-pci: OHCI PCI platform driver
[ 2.408437] ohci-platform: OHCI generic platform driver
[ 2.413846] ohci-exynos: OHCI EXYNOS driver
[ 2.418148] ohci-omap3: OHCI OMAP3 driver
[ 2.422326] usbcore: registered new interface driver uas
[ 2.427737] usbcore: registered new interface driver usb-storage
[ 2.433791] usbcore: registered new interface driver ums-cypress
[ 2.439840] usbcore: registered new interface driver ums_eneub6250
[ 2.446072] usbcore: registered new interface driver ums-freecom
[ 2.452122] usbcore: registered new interface driver ums-isd200
[ 2.458083] usbcore: registered new interface driver ums-usbat
[ 2.466925] rtc-em3027 2-0056: rtc core: registered rtc-em3027 as rtc0
[ 2.475370] tegra_rtc 7000e000.rtc: rtc core: registered 7000e000.rtc as rtc1
[ 2.482548] tegra_rtc 7000e000.rtc: Tegra internal Real Time Clock
[ 2.488909] i2c /dev entries driver
[ 2.498758] sdhci: Secure Digital Host Controller Interface driver
[ 2.504943] sdhci: Copyright(c) Pierre Ossman
[ 2.509848] Synopsys Designware Multimedia Card Interface Driver
[ 2.516477] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.522827] sdhci-tegra c8000000.sdhci: No vmmc regulator found
[ 2.528757] sdhci-tegra c8000000.sdhci: No vqmmc regulator found
[ 2.534762] mmc0: Invalid maximum block size, assuming 512 bytes
[ 2.568535] mmc0: SDHCI controller on c8000000.sdhci [c8000000.sdhci] using ADMA
[ 2.577139] sdhci-tegra c8000600.sdhci: Got CD GPIO
[ 2.582055] sdhci-tegra c8000600.sdhci: Got WP GPIO
[ 2.587018] sdhci-tegra c8000600.sdhci: No vmmc regulator found
[ 2.592942] sdhci-tegra c8000600.sdhci: No vqmmc regulator found
[ 2.598947] mmc1: Invalid maximum block size, assuming 512 bytes
[ 2.633640] mmc1: SDHCI controller on c8000600.sdhci [c8000600.sdhci] using ADMA
[ 2.642311] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.649157] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.655005] usbcore: registered new interface driver usbhid
[ 2.660586] usbhid: USB HID core driver
[ 2.664653] ashmem: initialized
[ 2.671423] oprofile: using arm/armv7-ca9
[ 2.676288] NET: Registered protocol family 10
[ 2.681554] mip6: Mobile IPv6
[ 2.684553] NET: Registered protocol family 17
[ 2.689162] Key type dns_resolver registered
[ 2.693736] ThumbEE CPU extension supported.
[ 2.698007] Registering SWP/SWPB emulation handler
[ 2.703467] registered taskstats version 1
[ 2.707604] usb 1-1: new high-speed USB device number 2 using tegra-ehci
[ 2.714399] zswap: loading zswap
[ 2.717891] zpool: no driver for type zbud
[ 2.721997] zswap: zbud zpool not available
[ 2.726193] zswap: zpool creation failed
[ 2.732305] Btrfs loaded
[ 2.735990] Key type encrypted registered
[ 2.743471] utmi_phy_clk_enable: timeout waiting for phy to stabilize
[ 2.750006] tegra-ehci c5000000.usb: EHCI Host Controller
[ 2.755664] tegra-ehci c5000000.usb: new USB bus registered, assigned bus number 2
[ 2.763436] tegra-ehci c5000000.usb: irq 288, io mem 0xc5000000
[ 2.833532] tegra-ehci c5000000.usb: USB 2.0 started, EHCI 1.00
[ 2.840625] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.847422] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.854650] usb usb2: Product: EHCI Host Controller
[ 2.859531] usb usb2: Manufacturer: Linux 4.2.2-1-ARCH ehci_hcd
[ 2.865451] usb usb2: SerialNumber: c5000000.usb
[ 2.870588] usb 1-1: New USB device found, idVendor=0424, idProduct=2514
[ 2.877314] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.884646] hub 2-0:1.0: USB hub found
[ 2.888444] hub 2-0:1.0: 1 port detected
[ 2.890585] hub 1-1:1.0: USB hub found
[ 2.896177] hub 1-1:1.0: 4 ports detected
[ 2.901219] input: gpio-keys as /devices/soc0/gpio-keys/input/input0
[ 2.908102] rtc-em3027 2-0056: setting system clock to 2015-10-15 16:13:21 UTC (1444925601)
[ 2.916483] sr_init: No PMIC hook to init smartreflex
[ 2.921658] sr_init: platform driver register failed for SR
[ 2.927270] of_cfs_init
[ 2.929794] of_cfs_init: OK
[ 2.937294] Unable to find PPMU node
[ 2.940920] exynos5-bus-int: probe of exynos5-bus-int failed with error -2
[ 2.948017] ALSA device list:
[ 2.951006] No soundcards found.
[ 2.954905] Waiting for root device /dev/sdb1...
[ 3.046667] mmc0: host does not support reading read-only switch, assuming write-enable
[ 3.056859] mmc0: new high speed SDHC card at address 875b
[ 3.062736] mmcblk0: mmc0:875b SD16G 14.9 GiB
[ 3.068743] mmcblk0: p1
[ 3.188534] usb 1-1.4: new high-speed USB device number 3 using tegra-ehci
[ 3.299709] usb 1-1.4: New USB device found, idVendor=18a5, idProduct=0243
[ 3.306586] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3.313894] usb 1-1.4: Product: STORE N GO
[ 3.317980] usb 1-1.4: Manufacturer: Verbatim
[ 3.322339] usb 1-1.4: SerialNumber: 15020516001013
[ 3.327914] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[ 3.334521] scsi host0: usb-storage 1-1.4:1.0
[ 4.339305] scsi 0:0:0:0: Direct-Access Verbatim STORE N GO 1.00 PQ: 0 ANSI: 6
[ 4.348056] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 4.353879] sd 0:0:0:0: [sda] 122880000 512-byte logical blocks: (62.9 GB/58.5 GiB)
[ 4.362118] sd 0:0:0:0: [sda] Write Protect is off
[ 4.367366] sd 0:0:0:0: [sda] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA
[ 4.380259] sda: sda1
[ 4.384738] sd 0:0:0:0: [sda] Attached SCSI removable disk
')

I have also installed newer versions of U-Boot without success. At the end I reverted to the 2011 version since is working fine with the Kernel 3.1 and at least I have a working Trimslice.

I really need some help to have this version working on my Trimslice. Moreover If somebody as an old rootfs version that contains the Kernel 3.19, please let me know since I'd like to test this version that should be compatibile with my U-Boot (unfortunately is not available a rootfs archive that contains the old versions).

Thanks.
dan64
 
Posts: 75
Joined: Mon Jan 31, 2011 8:52 pm

Re: Cannot boot from Trimslice with Kernel 4.2.2-1

Postby dan64 » Fri Oct 16, 2015 7:18 pm

I solved the problem, the issue was related to a wrong script. I have substitute it with a simpler one:

$this->bbcode_second_pass_code('', '
setenv bootargs 'root=/dev/sda1 rw rootwait console=tty1 console=ttyS0,115200n8 mem=384M@0M mem=512M@512M nvmem=128M@384M vmalloc=248M nohdparm noinitrd init=/sbin/init rootwait loglevel=8 video=tegrafb'
ext2load usb 0:1 4080000 /boot/uImage
bootm 4080000
')

But now I have new silly problem ! I cannot login to Trimslice. Here the session output:

$this->bbcode_second_pass_code('', '
Arch Linux 4.2.2-1-ARCH (ttyS0)

alarm login: alarm
Password:
Last login: Fri Oct 16 19:09:30 on ttyS0
-bas
Arch Linux 4.2.2-1-ARCH (ttyS0)

alarm login:
')

After inserting the password "alarm" is displayed "-bas" and the shell logoff !

I think that this issue is a bug.
dan64
 
Posts: 75
Joined: Mon Jan 31, 2011 8:52 pm

Re: Cannot boot from Trimslice with Kernel 4.2.2-1

Postby WarheadsSE » Fri Oct 16, 2015 7:54 pm

Can you ssh to it as alarm?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Cannot boot from Trimslice with Kernel 4.2.2-1

Postby dan64 » Sat Oct 17, 2015 6:55 am

I have mounted the new partition on /mnt/usb and installed the new root password and ssh configuration. I have also installed on "/root" the ssh keys to connect via terminal. But nope, I cannot login in any way. This is the output:

$this->bbcode_second_pass_code('', '
[ OK ] Started OpenSSH Daemon.
[ OK ] Started Getty on tty1.
[ OK ] Started Serial Getty on ttyS0.
[ OK ] Reached target Login Prompts.
[FAILED] Failed to start Rotate log files.
[ OK ] Started Login Service.
[ OK ] Started Network Name Resolution.
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.
[ OK ] Started Verify integrity of password and group files.

Arch Linux 4.2.2-1-ARCH (ttyS0)

Trimslice login: root
Password:
Last login: Fri Oct 16 19:09:14 on ttyS0
-bas Stopping User Manager for UID 0...
[ OK ] Stopped Serial Getty on ttyS0.
[ OK ] Started Serial Getty on ttyS0.
[ OK ] Stopped User Manager for UID 0.
[ OK ] Removed slice user-0.slice.

Arch Linux 4.2.2-1-ARCH (ttyS0)

Trimslice login:

')
After the login is received a signa that stop the getty process. The same happen using ssh.

What seems strange to me is that after inserting the password is displayed -bas. But what is it ?
dan64
 
Posts: 75
Joined: Mon Jan 31, 2011 8:52 pm

Re: Cannot boot from Trimslice with Kernel 4.2.2-1

Postby dan64 » Sat Oct 17, 2015 10:27 am

For the user "alarm" I changed the login shell to "sh", and now the output is:

$this->bbcode_second_pass_code('', '
Arch Linux 4.2.2-1-ARCH (ttyS0)

Trimslice login: alarm
Password:
Last login: Fri Oct 16 19:12:12 from 192.168.0.25
-sh
Arch Linux 4.2.2-1-ARCH (ttyS0)

Trimslice login:
')

So "-bas" is the name of the shell "bash" probably there is a max lenght of 4 bytes in output. And then the login is dead. It is like that the shell is killed or cannot start after the login. Never seen a problem like this..
dan64
 
Posts: 75
Joined: Mon Jan 31, 2011 8:52 pm

Re: Cannot boot from Trimslice with Kernel 4.2.2-1

Postby dan64 » Sat Oct 17, 2015 11:01 am

Ok, I have fixed the problem I have reinstalled the rootfs using a USB external storage (while before I installed it to a USB stick) and now I can login. Probably the fs was corrupted or the "tar" (used to extract previously the fs) behavior is different from "bsdtar" (used to extract the current fs)...
dan64
 
Posts: 75
Joined: Mon Jan 31, 2011 8:52 pm


Return to U-Boot/Kernel

Who is online

Users browsing this forum: No registered users and 23 guests