Looking for some help with porting

87 views
Skip to first unread message

Johan Yavari

unread,
Feb 13, 2023, 9:27:01 AM2/13/23
to opennetworklinux
Hi,

I'm trying to port ONL to a Delta Networks Kuga7048N switch.

I've made some progress (I think) with the files in $ONL/packages/platforms/delta/powerpc/kuga7048/

I copied the file/folder structure from accton as5610-52x and modified from there.

Gdrive link to my current src and reference docs: 

I'm sure there's plenty of errors in the code, but when I run the build commands, it doesn't do anything with my code folder...
#> docker/tools/onlbuilder
#> source setup.env
#> apt-cacher-ng
#> make powerpc

Any pointers?

Johan Yavari

unread,
Feb 18, 2023, 9:24:55 PM2/18/23
to opennetworklinux
Ok so I got it to compile and install but the system does nothing after loading the kernel/fit. Here's the output:

U-Boot 2013.01 (Nov 19 2014 - 17:10:19) L7048N V1.0.0.4

CPU0:  P2020E, Version: 2.1, (0x80ea0021)
Core:  E500, Version: 5.1, (0x80211051)
Clock Configuration:
       CPU0:1200 MHz, CPU1:1200 MHz,
       CCB:600  MHz,
       DDR:333.333 MHz (666.667 MT/s data rate) (Asynchronous), LBC:37.500 MHz
L1:    D-cache 32 kB enabled
       I-cache 32 kB enabled
Board: L7048N
I2C:   ready
SPI:   ready
DRAM:  Detected UDIMM 75.A83E0.G000C
2 GiB (DDR3, 64-bit, CL=6, ECC on)
Testing 0x00000000 - 0x7fffffff
Remap DDR
POST memory PASSED
Flash: 128 MiB
L2:    512 KB enabled
MMC:  FSL_SDHC: 0
EEPROM: TlvInfo v1 len=129
PCIe1: Root Complex of Slot 1, x2, regs @ 0xffe0a000
PCIe1: Bus 00 - 01
In:    serial
Out:   serial
Err:   serial
Net:   eTSEC3 is in sgmii mode.
eTSEC3
Hit any key to stop autoboot:  0
EEPROM: TlvInfo v1 len=129

Partition Map for MMC device 0  --   Partition Type: DOS

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            258048          009b0900-01     83
  2     260096          262144          009b0900-02     83
  3     522240          1572864         009b0900-03     83
  4     2095104         13727744        009b0900-04     83
20251724 bytes read in 1420 ms (13.6 MiB/s)
WARNING: adjusting available memory to 30000000
## Booting kernel from FIT Image at 10000000 ...
   Using 'powerpc-delta-kuga7048-r0' configuration
   Trying 'kernel-3.16-lts-powerpc-e500v-all.bin.gz' kernel subimage
     Description:  kernel-3.16-lts-powerpc-e500v-all.bin.gz
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x10453144
     Data Size:    4937706 Bytes = 4.7 MiB
     Architecture: PowerPC
     OS:           Linux
     Load Address: 0x00000000
     Entry Point:  0x00000000
     Hash algo:    crc32
     Hash value:   56a63466
   Verifying Hash Integrity ... crc32+ OK
## Loading init Ramdisk from FIT Image at 10000000 ...
   Using 'powerpc-delta-kuga7048-r0' configuration
   Trying 'onl-loader-initrd-powerpc.cpio.gz' ramdisk subimage
     Description:  onl-loader-initrd-powerpc.cpio.gz
     Type:         RAMDisk Image
     Compression:  gzip compressed
     Data Start:   0x1093495c
     Data Size:    10596408 Bytes = 10.1 MiB
     Architecture: PowerPC
     OS:           Linux
     Load Address: 0x01000000
     Entry Point:  0x01000000
     Hash algo:    crc32
     Hash value:   75820b7c
   Verifying Hash Integrity ... crc32+ OK
## Flattened Device Tree from FIT Image at 10000000
   Using 'powerpc-delta-kuga7048-r0' configuration
   Trying 'powerpc-delta-kuga7048-r0.dtb' FDT blob subimage
     Description:  powerpc-delta-kuga7048-r0.dtb
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x10908a34
     Data Size:    13152 Bytes = 12.8 KiB
     Architecture: PowerPC
   Verifying Hash Integrity ... OK
   Booting using the fdt blob at 0x10908a34
   Uncompressing Kernel Image ... OK
   Loading Ramdisk to 2f5e4000, end 2ffff038 ... OK
   Loading Device Tree to 03ff9000, end 03fff35f ... OK
ERROR: could not find compatible node fsl-usb2-mph or fsl-usb2-dr: FDT_ERR_NOTFOUND.
<end of output>

note: the default onie installer also displays "ERROR: could not find compatible node fsl-usb2-mph or fsl-usb2-dr: FDT_ERR_NOTFOUND." but then it displays:
setup_arch: bootmem
mpc85xx_ds_setup_arch()
arch: exit

pci 0000:00:00.0: ignoring class 0x0b2000 (doesn't match header type 01)
fsl-l2ctlr ffe20000.l2-cache-controller: Entire L2 as cache, provide valid sram address and size
ONIE: Using default IPv4 addr: eth0: 192.168.3.1/255.255.255.0
ONIE: Using default IPv4 addr: eth1: 192.168.4.1/255.255.255.0
ONIE: Using DHCPv4 addr: eth2: 10.1.1.220 / 255.255.0.0
sh: missing ]
sal_config_refresh: unknown entry "KUGA7048" on config.bcm line 1498
Broadcom Command Monitor: Copyright (c) 1998-2010 Broadcom Corporation
Release: sdk-6.3.2 built 20141029 (Wed Oct 29 10:41:00 2014)
Platform: KUGA7048_P2020
OS: Unix (Posix)
DMA pool size: 16777216
PCI unit 0: Dev 0xb844, Rev 0x02, Chip BCM56844_A1, Driver BCM56840_B0
SOC unit 0 attached to PCI device BCM56844_A1
<etc continues loading>

Steve Noble

unread,
Feb 21, 2023, 10:37:33 AM2/21/23
to Johan Yavari, opennetworklinux
I don't know much about that machine, it's power so we would need to look at the missing items you see in the error. I have a p2020 rdb in storage so I can attempt to boot your kernel there in a day or two.

--
You received this message because you are subscribed to the Google Groups "opennetworklinux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opennetworklin...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/opennetworklinux/cbe13a40-138a-4653-81f8-a1e53dcc129cn%40googlegroups.com.

Johan Yavari

unread,
Feb 22, 2023, 11:32:18 AM2/22/23
to opennetworklinux
I feel like maybe the device tree is the issue? where are the first places I should look in the ONL source?

Johan Yavari

unread,
Feb 22, 2023, 11:24:17 PM2/22/23
to opennetworklinux
it was the device tree. factory dtb had cpu compatible as "p2020ds" 

I changed it to p2020rdb. as well as a few other little bits of the dts based on the similar accton 5610

still have plenty of code kinks to work out, but it boots now.
Reply all
Reply to author
Forward
0 new messages