Flashed wrong image

Antworten
sfjuocekr
Beiträge: 3
Registriert: Do 10. Okt 2019, 01:14

Flashed wrong image

Beitrag von sfjuocekr »

I made the mistake of selecting the Kronos image on this CST HD2 box and now it won't boot.

When it powers up the power LED flashes once.

I've tried to make an MBR partitioned USB stick with its first partition active:

Code: Alles auswählen

/dev/sda1  *      128 974975  974848  476M  c W95 FAT32 (LBA)
I put the following files on it:

Code: Alles auswählen

-rwxr-xr-x 1 root root        0 Aug 10  2017 env.bin
-rwxr-xr-x 1 root root 61127332 Oct 10  2019 rootfs.arm.jffs2.nand
drwxr-xr-x 2 root root     4096 Oct 10  2019 System\ Volume\ Information
-rwxr-xr-x 1 root root   347008 Jan 25  2016 u-boot.bin
-rwxr-xr-x 1 root root    55560 Jan 25  2016 uldr.bin
-rwxr-xr-x 1 root root  2969840 Oct 10  2019 vmlinux.ub.gz
Put it in the front USB port and powered on the device while pressing the power button on the remote.

Firstly I noticed the LED on the USB drive never comes on, which tells me it doesn't read it at all.

I tried three different sticks, but I guess Ill have to wire it up over serial and load the bootloader that way?
Benutzeravatar
Miky
NI - Team
Beiträge: 1213
Registriert: Di 5. Apr 2016, 17:17
Box: Tank,Trinity,Neo 1,Neo2,Neo²,HD51
Been thanked: 1 time

Re: Flashed wrong image

Beitrag von Miky »

First, you have to show us a log of trying to recover the STB: viewtopic.php?f=14&t=7
In this log you/ we can see, what went wrong.
Boxen: Neo 1, Neo2 , Neo², Trinity, Tank, HD 51 alle SAT
Kein PN Support!
sfjuocekr
Beiträge: 3
Registriert: Do 10. Okt 2019, 01:14

Re: Flashed wrong image

Beitrag von sfjuocekr »

I hooked it up and got the bootloader working, flashed the SHINER kernel and JFFS2 image using USB recovery.

Code: Alles auswählen

Starting Microloader ASM built on окт 08 2015 09:37:26...
Initializing PLLs...
Initializing Clocks..
Initializing DDR PLLs/Clocks...
Initializing DDR controller...
Initializing data section...
Initializing stack ptr...
Switching to 'C' code...
Starting Microloader C...
Chip: SHINER-IP
Found Internal Ethernet PHY on GMAC0....
Checking for Guide button press ...
GCS in ISA MODE
GCS: SFC DEVICE SETUP COMPLETE
MMC:No device found
BOX MAC OK!
BOX: Type: TRINITY Rev: 84700102
Setting up default ATAG list...
Jumping to U-Boot ...
BOOT_TIME: 717 ms since POR
























--------------------------------------------------------------------------------
| U-Boot 2009.08-00067-gebbd4b2 (Apr 03 2015 - 16:35:07)               CST HDx |
|------------------------------------------------------------------------------|
| Chipset information                                                          |
| Vendor: NXP       Type: Shiner-IP        Revision: M1        Fuses: 00157270 |
|------------------------------------------------------------------------------|
| Clock information                                                            |
| *** not available yet ***                                                    |
|------------------------------------------------------------------------------|
| Frontpanel information                                                       |
| Vendor: CST       Version: 5.1           Display: none                       |
|------------------------------------------------------------------------------|
| Memory configuration                                                         |
| Start    | End      | Type    | Description                                  |
|----------+----------+---------+----------------------------------------------|
| 00000000 | 0FFFFFFF | RAM     | System main memory bank #0 (256M)            |
| 20000000 | 2FFFFFFF | RAM     | System main memory bank #1 (256M)            |
| D0000000 | D03FFFFF | S-FLASH | Eon Silicon EN25Q32 (  4M /  64K x  64)      |
| 00000000*| 1FFFFFFF*| NAND    | Toshiba NAND 512MiB 3,3V 8-bit               |
|------------------------------------------------------------------------------|
| Network configuration                                                        |
| MAC: LIP 6300                    address: 00-C5-5C-3B-54-2A                  |
--------------------------------------------------------------------------------

Hit any key to stop autoboot:  0

SFC read: offset 0x100000, size 0x300000
 3145728 bytes read: OK
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   NI Apollo Kernel
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2969776 Bytes =  2.8 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Linux version 3.10.93 (neutrino-images@nisrv) (gcc version 4.9.4 (crosstool-NG crosstool-ng-1.23.0-36-g1dbb06f2) ) #1 SMP Thu Oct 19 17:42:14 CEST 2017
[    0.000000] CPU: ARMv7 Processor [411fc091] revision 1 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Entropic Apollo STB Platform with FDT, model: CoolStream HD2 Apollo STB
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] Early platform io descriptors mapping...
[    0.000000] PERCPU: Embedded 7 pages/cpu @80908000 s5952 r8192 d14528 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: noinitrd console=ttyS0,115200n8 mtdparts=e0632000.flash_sfc:256k@0k(uldr),512k@256k(u-boot),128k@768k(env),128k@896k(spare),-(kernel);e0631000.flash_nand:256m@0k(root0),32m@256m(var),-(root1) root=mtd:root0 rootfstype=jffs2 rw
[    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: 256MB 256MB = 512MB total
[    0.000000] Memory: 246988k/246988k available, 277300k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xa0800000 - 0xff000000   (1512 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xa0000000   ( 512 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x80671bdc   (6567 kB)
[    0.000000]       .init : 0x80672000 - 0x806a1740   ( 190 kB)
[    0.000000]       .data : 0x806a2000 - 0x806e3da0   ( 264 kB)
[    0.000000]        .bss : 0x806e3da0 - 0x806ff438   ( 110 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU debugfs-based tracing is enabled.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] NR_IRQS:388
[    0.000000] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] smp_twd: clock not found -2
[    0.000000] Unable to get timer clock. Assuming 50Mhz input clock.
[    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[    0.000000] stb-timer: system timer (irq = 58, rate 50000000)
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [ttyS0] enabled
[    0.253197] Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
[    0.342785] pid_max: default: 32768 minimum: 301
[    0.347622] Mount-cache hash table entries: 512
[    0.354166] CPU: Testing write buffer coherency: ok
[    0.359298] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.364950] Setting up static identity map for 0x803de4b8 - 0x803de510
[    0.371505] L310 cache controller enabled
[    0.375428] l2x0: 8 ways, CACHE_ID 0x410004c4, AUX_CTRL 0x32421001, Cache size: 131072 B
[    0.384156] Brought up 1 CPUs
[    0.387031] SMP: Total of 1 processors activated (1196.85 BogoMIPS).
[    0.393359] CPU: All CPU(s) started in SVC mode.
[    0.398725] devtmpfs: initialized
[    0.408876] NET: Registered protocol family 16
[    0.413963] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.545165] GMAC0: active interface is 1
[    0.549022] ChipID=0x3 ChipRevID=0x2
[    0.552723] nx_dmac: Registered with 8 channels
[    0.562027] bio: create slab <bio-0> at 0
[    0.566549] GPIO: base febd5000 (phys e06d5000)
[    0.571260] GPIO: base feb69000 (phys e0669000)
[    0.576205] SCSI subsystem initialized
[    0.580371] usbcore: registered new interface driver usbfs
[    0.585789] usbcore: registered new interface driver hub
[    0.591175] usbcore: registered new device driver usb
[    0.596229] pps_core: LinuxPPS API ver. 1 registered
[    0.601119] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.610192] PTP clock support registered
[    0.615896] Switching to clocksource timer_us
[    0.627057] NET: Registered protocol family 2
[    0.632242] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.639270] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.645718] TCP: Hash tables configured (established 4096 bind 4096)
[    0.652040] TCP: reno registered
[    0.655180] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.661020] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.667485] NET: Registered protocol family 1
[    0.672099] RPC: Registered named UNIX socket transport module.
[    0.677919] RPC: Registered udp transport module.
[    0.682621] RPC: Registered tcp transport module.
[    0.687250] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.693834] PM: STB Platform power mgmt initialization.
[    0.815131] cfg80211: Calling CRDA to update world regulatory domain
[    0.822280] bounce pool size: 64 pages
[    0.832128] NFS: Registering the id_resolver key type
[    0.837118] Key type id_resolver registered
[    0.841273] Key type id_legacy registered
[    0.845212] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.851647] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.859006] msgmni has been set to 482
[    0.863764] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.871116] io scheduler noop registered
[    0.874937] io scheduler deadline registered
[    0.879362] io scheduler cfq registered (default)
[    0.884398] e06e2000.serial: ttyS0 at MMIO 0xe06e2000 (irq = 47) is a uart-ip3106
[    0.895804] loop: module loaded
[    0.899261] ahci-stb e0638000.sata: unable to find phy
[    0.904401] SATA: Adjusting los_lvl (rd_val=0x8a46, wr_val=0x8ae6)
[    0.910494] SATA: Adjusting rx_term_en0/1 (rd_val=0x2750275, wr_val=0x2770277)
It just stops there and eventually reboots.

The screen only shows the NI logo.


edit1:

I updated this box from a working CST image btw, booted fine and I was using it to watch TV. Just downloaded the -wrong- image, put it on a USB stick and selected it using local update. If you are curious as to how I downloaded the wrong image... use Google Translate to view this page in English and it show you the Trinity (shiner) below the Kronos v2: viewtopic.php?f=58&t=47

So, if you want to reproduce this... I guess this is the way :(

I'm guessing the kernel is waiting for the ahci-stb to report (taken from a working log): ahci-stb e0638000.sata: SSS flag set, parallel bus scan disabled

Is there a kernel command line to disable SATA to test if this is the cause?

Or better yet, does someone know where to find the kernel that belongs to CST 2.12 TRINITY as that was used last on this device.

I just can't believe its bricked just like that...

edit2:

To answer my kernel question, I mounted the image and copied the kernel from /var/update as I figured the local update had to get the kernel from somewhere.
Benutzeravatar
Miky
NI - Team
Beiträge: 1213
Registriert: Di 5. Apr 2016, 17:17
Box: Tank,Trinity,Neo 1,Neo2,Neo²,HD51
Been thanked: 1 time

Re: Flashed wrong image

Beitrag von Miky »

The Kernel is included in the Image, you normaly don`t have to flash the Kernel seperate.
Which kind of box do you have really. Trinity Boxes are in alle 3. The old Trinity, the "new" one and the Trinity duo.
Edit: Okay, your log shows shiner.
Boxen: Neo 1, Neo2 , Neo², Trinity, Tank, HD 51 alle SAT
Kein PN Support!
sfjuocekr
Beiträge: 3
Registriert: Do 10. Okt 2019, 01:14

Re: Flashed wrong image

Beitrag von sfjuocekr »

Never got it working :(
Antworten

Zurück zu „Coolstream HD2“