oxnas(OX820)/Medion from openWRT to debian May 15, 2023 08:32AM |
Registered: 1 year ago Posts: 17 |
root@ChrisNAS:~# cat /etc/fw_env.config change no Problem /dev/mtd2 0x0 0x20000 0x20000 1 root@ChrisNAS:~# cat /proc/mtd could not write with nano dev: size erasesize name mtd0: 00040000 00020000 "stage1" mtd1: 00380000 00020000 "u-boot" mtd2: 00080000 00020000 "u-boot-env" mtd3: 009c0000 00020000 "kernel" mtd4: 07200000 00020000 "ubi"
Re: oxnas(OX820)/Medion from openWRT to debian May 15, 2023 06:45PM |
Admin Registered: 13 years ago Posts: 18,898 |
Quote
uBoot:
I would like to update the uBoot for easy USB boot.
https://forum.doozan.com/read.php?3,16017 <-- This is the right one for me? If I understand correctly the uBoot is replaced in the NAND. Is this the base system I can abort on boot?
Debian:
How is Debian installed. USB stick or can that also be in the NAND like openWRT?
Debian: https://forum.doozan.com/read.php?2,16044 <-- am I in the right place?
Re: oxnas(OX820)/Medion from openWRT to debian May 16, 2023 02:09AM |
Registered: 1 year ago Posts: 17 |
Re: oxnas(OX820)/Medion from openWRT to debian May 16, 2023 04:02PM |
Admin Registered: 13 years ago Posts: 18,898 |
printenv usb start helpAnd post the entire serial console log here (copy/paste what on your serial console terminal). Don't post pictures, I need the text log.
Re: oxnas(OX820)/Medion from openWRT to debian May 16, 2023 04:04PM |
Registered: 1 year ago Posts: 17 |
Quote
U-Boot 1.1.2 (Jun 24 2011 - 09:41:57)
U-Boot code: 60D00000 -> 60D1A94C BSS: -> 60D1F004
RAM Configuration:
Bank #0: 60000000 128 MB
SRAM Configuration:
64KB at 0x50000000
NAND:128 MiB
In: serial
Out: serial
Err: serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot: 0
$ printenv
bootdelay=2
baudrate=115200
ipaddr=192.168.50.100
autoload=n
netmask=255.255.0.0
bootfile="uImage"
load_nand=nboot 61000000 0 440000
boot=bootm 61000000
boot_nand=run load_nand boot
MODEL_ID=AB03
PRODUCT_NAME=STG-212
VENDOR_NAME=MitraStar Technology Corp.
ethaddr=00:11:41:30:F2:34
boot_stage2=nand read 0x64000000 0x440000 0x90000 ; go 64000000
bootcmd=nboot 60500000 0 440000; bootm
serverip=192.168.178.6
stdin=serial
stdout=serial
stderr=serial
bootargs= console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 mem=128M poweroutage=yes
Environment size: 556/131068 bytes
Unknown command 'usbsry 'help'
$ usb start
Unknown command 'usb' - try 'help'
$ help
? - alias for 'help'
base - print or set address offset
bdinfo - print Board Info structure
bootm - boot application image from memory
bootp - boot image via network using BootP/TFTP protocol
cmp - memory compare
cp - memory copy
crc32 - checksum calculation
echo - echo args to console
exit - exit script
go - start application at address 'addr'
help - print online help
iminfo - print header information for application image
ledfail - Extinguish (0) or light (1) failure LED
loop - infinite loop on address range
md - memory display
mm - memory modify (auto-incrementing)
mtest - simple RAM test
mw - memory write (fill)
nand - NAND sub-system
nboot - boot from NAND device
nm - memory modify (constant address)
nwboot - NAND Write boot information
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
rarpboot- boot image via network using RARP/TFTP protocol
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
test - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
version - print monitor version
Re: oxnas(OX820)/Medion from openWRT to debian May 16, 2023 05:31PM |
Registered: 1 year ago Posts: 17 |
Re: oxnas(OX820)/Medion from openWRT to debian May 16, 2023 10:48PM |
Admin Registered: 13 years ago Posts: 18,898 |
Quote
1. Install debian on USB
2. Install new UBoot in NAND
3. After Debian is running on USB rootfs, check out everything is OK.
4. Install openWRT again in NAND.
Re: oxnas(OX820)/Medion from openWRT to debian May 17, 2023 01:24AM |
Registered: 1 year ago Posts: 17 |
Re: oxnas(OX820)/Medion from openWRT to debian May 17, 2023 05:03PM |
Registered: 1 year ago Posts: 17 |
U-Boot SPL 2013.10-g3a0f380-dirty (Jul 26 2014 - 14:31:34) Boot device: SATA Attempting to set PLLA to 850 MHz ... plla_ctrl0 : 0000020a plla_ctrl1 : 00330000 plla_ctrl2 : 0065008b plla_ctrl3 : 000000f1 PLLA Set Bus 0: OK Device 0: ** File not found /boot/bootargs.bin ** U-Boot 2013.10-g3a0f380-dirty (Jul 26 2014 - 10:18:57) for OXNAS DRAM: 128 MiB IDE: Bus 0: OK Device 0: Model: TOSHIBA MK1661GSYN Firm: MH000K Ser#: 42B4P0VTT Type: Hard Disk Supports 48-bit addressing Capacity: 152627.8 MB = 149.0 GB (312581808 x 512) NAND: 128 MiB In: serial Out: serial Err: serial Net: Led: GREEN mii0 Main Loop Hit any key to stop autoboot: 0 ide - IDE sub-system Usage: ide reset - reset IDE controller ide info - show available IDE devices ide device [dev] - show or set current device ide part [dev] - print partition table of one or all IDE devices ide read addr blk# cnt ide write addr blk# cnt - read/write `cnt' blocks starting at block `blk#' to/from memory address `addr' 2212156 bytes read in 474 ms (4.4 MiB/s) ## Booting kernel from Legacy Image at 60500000 ... Image Name: Linux-2.6.31.14_OX820_1.2_shv Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2212092 Bytes = 2.1 MiB Load Address: 60008000 Entry Point: 60008000 Verifying Checksum ... OK Loading Kernel Image ... OK Led: GREEN Starting kernel ... Uncompressing Linux....................................................................................................................................... done, booting the kernel. [ 0.000000] Linux version 2.6.31.14_OX820_1.2_shv (root@plug2) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Fri Oct 4 11:38:10 CEST 2013 [ 0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387f [ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache [ 0.000000] Machine: Oxsemi NAS [ 0.000000] 1 memory region [ 0.000000] Ignoring unrecognised tag 0x00000000 [ 0.000000] Memory policy: ECC disabled, Data cache writealloc [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: root=/dev/sda2 rootfstype=ext3 console=ttyS0,115200 mem=128M [ 0.000000] PID hash table entries: 512 (order: 9, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Memory: 128MB = 128MB total [ 0.000000] Memory: 125368KB available (3816K code, 304K data, 132K init, 0K highmem) [ 0.000000] Hierarchical RCU implementation. [ 0.000000] NR_IRQS:96 [ 0.000000] OX820_RPS_init_irq: interrupts 64 to 96 [ 0.010000] Console: colour dummy device 80x30 [ 0.010000] console [ttyS0] enabled [ 0.020000] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744) [ 0.230000] Security Framework initialized [ 0.230000] Mount-cache hash table entries: 512 [ 0.240000] CPU: Testing write buffer coherency: ok [ 0.240000] Calibrating local timer... 425.50MHz. [ 0.310000] CPU1: Booted secondary processor [ 0.410000] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744) [ 0.620000] Brought up 2 CPUs [ 0.630000] SMP: Total of 2 processors activated (678.29 BogoMIPS). [ 0.640000] NET: Registered protocol family 16 [ 0.640000] Number of DMA channels = 4, version = 4 [ 0.650000] Reserving a DMA channel for DirectRAID [ 0.650000] Allocating 389 SRAM generic DMA descriptors"
OX820 # printenv dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr autoload=no baudrate=115200 bootargs=console=ttyS0,115200n8 bootcmd=run dt_bootcmd_ide bootdelay=3 console=console=ttyS0,115200n8 dt_bootcmd_ide=ide start; run dt_ide_bootcmd; ide stop; reset dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr dt_ide_boot=run dt_ide_load_uimage; run dt_ide_load_initrd; run dt_ide_load_dtb; run dt_bootm dt_ide_bootcmd=run ide_set_bootargs; run dt_sata_boot dt_ide_load_dtb=ext2load ide 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb dt_ide_load_initrd=ext2load ide 0:1 $uinitrd_addr /boot/uInitrd dt_ide_load_uimage=ext2load ide 0:1 $uimage_addr /boot/uImage dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage dt_sata_boot=ext2load ide 0:1 $uimage_addr /boot/uImage_2.6.31.14_OX820_1.2_shv.Pro; bootm $uimage_addr dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot dtb_addr=0x62c00000 ethact=mii0 ethaddr=00:25:31:01:C6:76 ide_set_bootargs=setenv bootargs root=/dev/sda2 rootfstype=ext3 console=ttyS0,115200 mem=128M if_netconsole=ping $serverip ipaddr=192.168.0.100 mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) preboot_nc=run if_netconsole start_netconsole sata_bootcmd=run usb_set_bootargs; run sata_boot start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version stderr=serial stdin=serial stdout=serial uimage_addr=0x60500000 uinitrd_addr=0x60e00000 usb_device=0:1 usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 Environment size: 1898/16380 bytes"
Re: oxnas(OX820)/Medion from openWRT to debian May 18, 2023 01:09PM |
Registered: 1 year ago Posts: 17 |
[ 1.820000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 1.830000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.830000] usb usb1: Product: OXNAS EHCI Host Controller [ 1.840000] usb usb1: Manufacturer: Linux 2.6.31.6_SMP_820 ehci_hcd [ 1.850000] usb usb1: SerialNumber: usb [ 1.850000] usb usb1: configuration #1 chosen from 1 choice [ 1.860000] hub 1-0:1.0: USB hub found [ 1.860000] hub 1-0:1.0: 2 ports detected [ 1.870000] Initializing USB Mass Storage driver... [ 1.870000] usbcore: registered new interface driver usb-storage [ 1.880000] USB Mass Storage support registered." [ 1.910000] VFS: Cannot open root device \"sda1\" or unknown-block(0,0) [ 1.920000] Please append a correct \"root=\" boot option; here are the available partitions: [ 1.930000] 1f00 131072 mtdblock0 (driver?) [ 1.930000] 1f01 14336 mtdblock1 (driver?) [ 1.940000] 1f02 116736 mtdblock2 (driver?) [ 1.940000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)"
dev: size erasesize name mtd0: 00e00000 00020000 "boot" mtd1: 07200000 00020000 "data"
Re: oxnas(OX820)/Medion from openWRT to debian May 18, 2023 03:37PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: oxnas(OX820)/Medion from openWRT to debian May 18, 2023 03:51PM |
Registered: 1 year ago Posts: 17 |
[ 0.650000] Allocating 389 SRAM generic DMA descriptors
Re: oxnas(OX820)/Medion from openWRT to debian May 18, 2023 04:53PM |
Registered: 1 year ago Posts: 17 |
Re: oxnas(OX820)/Medion from openWRT to debian May 18, 2023 05:01PM |
Admin Registered: 13 years ago Posts: 18,898 |
Quote
On another HDD I have successfully started archlinux. :)
It worked :)
U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700)
Re: oxnas(OX820)/Medion from openWRT to debian May 18, 2023 05:39PM |
Registered: 1 year ago Posts: 17 |
U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12) Boot device: NAND Attempting to set PLLA to 850 MHz ... plla_ctrl0 : 0000020a plla_ctrl1 : 00330000 plla_ctrl2 : 0065008b plla_ctrl3 : 000000f1 PLLA Set U-Boot 2015.10-tld-2 (Oct 21 2017 - 22:00:02 -0700) OXNAS OX820 DRAM: 128 MiB NAND: 128 MiB In: serial Out: serial Err: serial Net: dwmac.40400000 Hit any key to stop autoboot: 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found Reset IDE: SATA PHY not ready for device 0 ide_preinit failed Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 4194304 54e074cd-01 83 loading envs from usb 0 ... ** File not found /boot/uEnv.txt ** no IDE devices available running scan_disk ... Scan device usb device usb 0:1 1 bytes read in 210 ms (0 Bytes/s) Found bootable drive on usb 0 loading uImage ... 4600448 bytes read in 385 ms (11.4 MiB/s) loading uInitrd ... 6464907 bytes read in 393 ms (15.7 MiB/s) loading DTB /boot/dts/ox820-pogoplug-pro.dtb ... 9032 bytes read in 216 ms (40 KiB/s) ## Booting kernel from Legacy Image at 60500000 ... Image Name: Linux-4.14.180-oxnas-tld-1 Created: 2020-05-15 3:58:34 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 4600384 Bytes = 4.4 MiB Load Address: 60008000 Entry Point: 60008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 60e00000 ... Image Name: initramfs-4.14.180-oxnas-tld-1 Created: 2020-05-15 3:58:49 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 6464843 Bytes = 6.2 MiB Load Address: 60000000 Entry Point: 60000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 62c00000 Booting using the fdt blob at 0x62c00000 Loading Kernel Image ... OK Loading Ramdisk to 677fc000, end 67e2654b ... OK Loading Device Tree to 677f6000, end 677fb347 ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.14.180-oxnas-tld-1 (root@tldDebian) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP PREEMPT Wed May 13 02:38:34 PDT 2020 [ 0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: Pogoplug V3 Pro [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] random: get_random_bytes called from start_kernel+0x84/0x3f8 with crng_init=0 [ 0.000000] percpu: Embedded 15 pages/cpu s29548 r8192 d23700 u61440 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=41000000.nand:14m(boot),-(data) [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Memory: 112712K/131072K available (7168K kernel code, 199K rwdata, 1524K rodata, 1024K init, 245K bss, 18360K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xc8800000 - 0xff800000 ( 880 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc0800000 (8160 kB) [ 0.000000] .init : 0xc0a00000 - 0xc0b00000 (1024 kB) [ 0.000000] .data : 0xc0b00000 - 0xc0b31f68 ( 200 kB) [ 0.000000] .bss : 0xc0b383b8 - 0xc0b757c0 ( 246 kB) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Tasks RCU enabled. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] FPGA IRQ chip 0 "interrupt-controller" @ c8804000, 32 irqs, parent IRQ: 16 [ 0.000015] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns [ 0.000046] clocksource: oxnas_rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns [ 0.000061] timer_oxnas_rps: Registered clocksource rate 390625Hz [ 0.000084] timer_oxnas_rps: Registered clock event rate 6250000Hz prescaler 0 period 62500 [ 0.000232] GIC: PPI13 is secure or misconfigured [ 0.000286] GIC: PPI13 is secure or misconfigured [ 0.000450] Console: colour dummy device 80x30 [ 0.000496] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744) [ 0.050378] pid_max: default: 32768 minimum: 301 [ 0.050649] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.050677] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.051573] CPU: Testing write buffer coherency: ok [ 0.090439] Setting up static identity map for 0x60100000 - 0x60100038 [ 0.110341] Hierarchical SRCU implementation. [ 0.150341] smp: Bringing up secondary CPUs ... [ 0.220449] GIC: PPI13 is secure or misconfigured [ 0.280627] smp: Brought up 1 node, 2 CPUs [ 0.280660] SMP: Total of 2 processors activated (678.29 BogoMIPS). [ 0.281377] devtmpfs: initialized [ 0.286801] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.286835] futex hash table entries: 512 (order: 2, 16384 bytes) [ 0.287170] prandom: seed boundary self test passed [ 0.291463] prandom: 100 self tests passed [ 0.291486] pinctrl core: initialized pinctrl subsystem [ 0.292198] NET: Registered protocol family 16 [ 0.293811] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.296156] cpuidle: using governor ladder [ 0.296230] cpuidle: using governor menu [ 0.314895] vgaarb: loaded [ 0.315402] SCSI subsystem initialized [ 0.316139] usbcore: registered new interface driver usbfs [ 0.316231] usbcore: registered new interface driver hub [ 0.316382] usbcore: registered new device driver usb [ 0.316590] pps_core: LinuxPPS API ver. 1 registered [ 0.316605] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it> [ 0.316641] PTP clock support registered [ 0.317667] clocksource: Switched to clocksource oxnas_rps_clocksource_timer [ 0.333544] NET: Registered protocol family 2 [ 0.334430] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.334471] TCP bind hash table entries: 1024 (order: 1, 8192 bytes) [ 0.334510] TCP: Hash tables configured (established 1024 bind 1024) [ 0.334676] UDP hash table entries: 256 (order: 1, 8192 bytes) [ 0.334725] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) [ 0.334986] NET: Registered protocol family 1 [ 0.335749] RPC: Registered named UNIX socket transport module. [ 0.335772] RPC: Registered udp transport module. [ 0.335787] RPC: Registered tcp transport module. [ 0.335802] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.336186] Unpacking initramfs... [ 1.045491] Freeing initrd memory: 6316K [ 1.046656] Initialise system trusted keyrings [ 1.046727] Key type blacklist registered [ 1.047009] workingset: timestamp_bits=30 max_order=15 bucket_order=0 [ 1.054248] zbud: loaded [ 1.058672] NFS: Registering the id_resolver key type [ 1.058718] Key type id_resolver registered [ 1.058731] Key type id_legacy registered [ 1.058762] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.058775] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 1.059624] fuse init (API version 7.26) [ 1.060528] orangefs_debugfs_init: called with debug mask: :none: :0: [ 1.060797] orangefs_init: module version upstream loaded [ 3.044564] Key type asymmetric registered [ 3.044590] Asymmetric key parser 'x509' registered [ 3.044687] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 3.044705] io scheduler noop registered [ 3.044718] io scheduler deadline registered [ 3.044776] io scheduler cfq registered (default) [ 3.046960] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled [ 3.048563] console [ttyS0] disabled [ 3.048696] 44200000.serial: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A [ 3.622927] console [ttyS0] enabled [ 3.637030] loop: module loaded [ 3.642032] scsi host0: sata_oxnas [ 3.645744] ata1: SATA max UDMA/133 irq 57 [ 3.649991] sata_oxnas: resetting SATA core [ 3.717908] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1 [ 3.724239] nand: Hynix H27U1G8F2BTR-BC [ 3.728107] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 3.735659] Scanning device for bad blocks [ 3.822223] 2 ofpart partitions found on MTD device 41000000.nand-controller [ 3.829276] Creating 2 MTD partitions on "41000000.nand-controller": [ 3.835609] 0x000000000000-0x000000e00000 : "boot" [ 3.841989] 0x000000e00000-0x000008000000 : "data" [ 3.849873] libphy: Fixed MDIO Bus: probed [ 3.854353] oxnas-dwmac 40400000.ethernet: PTP uses main clock [ 3.860239] oxnas-dwmac 40400000.ethernet: no reset control found [ 3.927774] stmmac - user ID: 0x12, Synopsys ID: 0x35 [ 3.932812] oxnas-dwmac 40400000.ethernet: Ring mode enabled [ 3.938503] oxnas-dwmac 40400000.ethernet: DMA HW capability register supported [ 3.945779] oxnas-dwmac 40400000.ethernet: Enhanced/Alternate descriptors [ 3.952563] oxnas-dwmac 40400000.ethernet: Enabled extended descriptors [ 3.959170] oxnas-dwmac 40400000.ethernet: RX Checksum Offload Engine supported [ 3.966446] oxnas-dwmac 40400000.ethernet: COE Type 2 [ 3.971499] oxnas-dwmac 40400000.ethernet: TX Checksum insertion supported [ 3.978375] oxnas-dwmac 40400000.ethernet: Wake-Up On Lan supported [ 3.984611] oxnas-dwmac 40400000.ethernet: Enable RX Mitigation via HW Watchdog Timer [ 3.989588] ata1: SATA link down (SStatus 0 SControl 310) [ 4.046330] libphy: stmmac: probed [ 4.049794] mdio_bus stmmac-0:00: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:00, irq=POLL) [ 4.059287] mdio_bus stmmac-0:07: attached PHY driver [unbound] (mii_bus:phy_addr=stmmac-0:07, irq=POLL) [ 4.069672] PPP generic driver version 2.4.2 [ 4.074178] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 4.080750] ehci-pci: EHCI PCI platform driver [ 4.287736] oxnas-ehci 40200100.ehci: EHCI Host Controller [ 4.293248] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1 [ 4.301140] oxnas-ehci 40200100.ehci: irq 52, io mem 0x40200100 [ 4.327738] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00 [ 4.334056] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 4.340874] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 4.348101] usb usb1: Product: EHCI Host Controller [ 4.352960] usb usb1: Manufacturer: Linux 4.14.180-oxnas-tld-1 ehci_hcd [ 4.359577] usb usb1: SerialNumber: 40200100.ehci [ 4.365056] hub 1-0:1.0: USB hub found [ 4.368954] hub 1-0:1.0: 2 ports detected [ 4.373918] usbcore: registered new interface driver cdc_wdm [ 4.379752] usbcore: registered new interface driver usb-storage [ 4.385863] usbcore: registered new interface driver usbserial [ 4.391815] usbcore: registered new interface driver usbserial_generic [ 4.398407] usbserial: USB Serial support registered for generic [ 4.404684] mousedev: PS/2 mouse device common for all mice [ 4.410434] i2c /dev entries driver [ 4.415144] hidraw: raw HID events driver (C) Jiri Kosina [ 4.420787] usbcore: registered new interface driver usbhid [ 4.426337] usbhid: USB HID core driver [ 4.431546] NET: Registered protocol family 10 [ 4.437414] Segment Routing with IPv6 [ 4.441236] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver [ 4.448919] NET: Registered protocol family 17 [ 4.453457] Key type dns_resolver registered [ 4.458941] registered taskstats version 1 [ 4.463027] Loading compiled-in X.509 certificates [ 4.467955] zswap: loaded using pool lzo/zbud [ 4.549217] Key type big_key registered [ 4.589785] Key type encrypted registered [ 4.737697] usb 1-2: new high-speed USB device number 2 using oxnas-ehci
OX820> printenv bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x60500000 0x60e00000 0x62c00000; else bootm 0x60500000 0x60e00000; fi; else if run load_dtb; then bootm 0x60500000 - 0x62c00000; else bootm 0x60500000; fi; fi bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb device=0:1 devices=usb ide disks=0 1 2 3 dtb_file=/boot/dts/ox820-pogoplug-pro.dtb ethact=dwmac.40400000 ethaddr=52:3b:20:9c:11:51 if_netconsole=ping $serverip ipaddr=192.168.0.222 load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device 0x62c00000 $dtb_file load_initrd=echo loading uInitrd ...; load $bootdev $device 0x60e00000 /boot/uInitrd load_uimage=echo loading uImage ...; load $bootdev $device 0x60500000 /boot/uImage mainlineLinux=yes mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 0x60500000 /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done serverip=192.168.0.220 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_import=echo importing envs ...; env import -t 0x60510000 $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x60500000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi usb_custom_params=zswap.enabled=1 usb_ready_retry=15 Environment size: 2720/131068 bytes
Re: oxnas(OX820)/Medion from openWRT to debian May 18, 2023 06:07PM |
Admin Registered: 13 years ago Posts: 18,898 |
setenv dtb_file /boot/dts/ox820-stg212.dtb boot
Re: oxnas(OX820)/Medion from openWRT to debian May 19, 2023 02:05AM |
Registered: 1 year ago Posts: 17 |
Re: oxnas(OX820)/Medion from openWRT to debian May 19, 2023 09:51AM |
Registered: 1 year ago Posts: 17 |
setenv bootcmd 'nboot 60500000 0 440000; bootm' saveenvHow do I get the U-Boot to automatically boot from USB when a USB stick is inserted otherwise NAND?
Re: oxnas(OX820)/Medion from openWRT to debian May 19, 2023 02:50PM |
Registered: 1 year ago Posts: 17 |
Re: oxnas(OX820)/Medion from openWRT to debian May 19, 2023 03:51PM |
Admin Registered: 13 years ago Posts: 18,898 |
setenv bootcmd_openwrt 'nboot 60500000 0 440000; bootm' setenv bootcmd 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_openwrt; reset'
setenv bootcmd_openwrt 'nboot 60500000 0 440000; bootm' setenv bootcmd 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_openwrt; reset' saveenv
Re: oxnas(OX820)/Medion from openWRT to debian May 21, 2023 10:47AM |
Registered: 1 year ago Posts: 17 |
ifconfig eth0 down ip link set eth0 mtu 9000 (6000,4000,2000) ifconfig eth0 updoes not work. In the stock firmware from Medion the function was possible. Do you have a trick?
Re: oxnas(OX820)/Medion from openWRT to debian May 21, 2023 01:54PM |
Admin Registered: 13 years ago Posts: 18,898 |
# cat /etc/fstab ..... /swapfile1 swap swap defaults 0 0
# cat /etc/rc.local ..... swapoff -v /swapfile1 swapon -v -p 2 /media/DATA/swapfile2
Re: oxnas(OX820)/Medion from openWRT to debian May 23, 2023 04:42AM |
Registered: 6 years ago Posts: 103 |
Re: oxnas(OX820)/Medion from openWRT to debian May 23, 2023 10:04AM |
Registered: 1 year ago Posts: 17 |
Re: oxnas(OX820)/Medion from openWRT to debian May 23, 2023 02:26PM |
Admin Registered: 13 years ago Posts: 18,898 |
Quote
bodhi
With this type of problem, the best I can suggest is to stay with 4.14.198 for now if you run Debian.
Don't know when I will build Debian kernel 5.15.x, but that's my plan.The EOL date for 5.15.x is Oct 2026, and it might get extended.
Re: oxnas(OX820)/Medion from openWRT to debian June 14, 2023 01:48PM |
Registered: 1 year ago Posts: 17 |
Re: oxnas(OX820)/Medion from openWRT to debian June 14, 2023 03:05PM |
Admin Registered: 13 years ago Posts: 18,898 |
Re: oxnas(OX820)/Medion from openWRT to debian June 14, 2023 04:22PM |
Registered: 1 year ago Posts: 17 |