Worked example of firmware re-flash without using the update facility.
HKVS #
HKVS #
HKVS #
HKVS #
HKVS #
HKVS #
HKVS #
HKVS # printenv
ipaddr=192.0.0.64
serverip=192.0.0.128
gatewayip=0.0.0.0
netmask=255.255.255.0
ethaddr=28:57:be:23:3c:ea
loadaddr=0xc2000000
bootfile=digicap.dav
bootcmd=null
bootargs=console=ttyS0 initrd=0xc0a00000,0x400000 rw root=/dev/ram dbg=9 debug single
bootdelay=2
HKVS #
HKVS #
HKVS #
HKVS #
ŠKVS # reset
U-Boot 1.3.4-121219 (Apr 8 2015 - 14:34:29)
ARM Clock: 480MHz
DDR Clock: 336MHz
Hit Ctrl+u to stop autoboot: 0
|BIND err|
Unknown command:null
booting from pri part...
load kernel...
load ramdisk...
[ 0.000000] Linux version 2.6.38.8 (chenyuanming@Cpl-Frt-BSP) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70) )
[ 0.000000] #18 PREEMPT Thu Jan 21 17:27:08 CST 2016
[ 0.000000] CPU: ARMv6-compatible processor [4117b365] revision 5 (ARMv6TEJ), cr=00c5387f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: Coconut
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Ambarella: AHB = 0x60000000[0xf0000000],0x01000000 0
[ 0.000000] Ambarella: APB = 0x70000000[0xf1000000],0x01000000 0
[ 0.000000] Ambarella: PPM = 0xc0000000[0xe0000000],0x00200000 9
[ 0.000000] Ambarella: BSB = 0xc8c00000[0xe8c00000],0x00400000 9
[ 0.000000] Ambarella: DSP = 0xc9000000[0xe9000000],0x07000000 9
[ 0.000000] Ambarella: HAL = 0xc00a0000[0xfee00000],0x0000e708 9
[ 0.000000] On node 0 totalpages: 25344
[ 0.000000] free_area_init_node: node 0, pgdat c0563180, node_mem_map c0589000
[ 0.000000] Normal zone: 198 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 25146 pages, LIFO batch:7
[ 0.000000] bootmem_init: high_memory = 0xc8a00000
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 25146
[ 0.000000] Kernel command line: console=ttyS0 initrd=0xc0a00000,0x400000 rw root=/dev/ram dbg=9 debug single KRN_PRT=pri RMD_PRT=pri reserved=0xc6500000,0x100000,99 video=amb0fb:720x480,720x480,1,0
[ 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: 99MB = 99MB total
[ 0.000000] Memory: 90656k/90656k available, 10720k 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] DMA : 0xfe600000 - 0xfee00000 ( 8 MB)
[ 0.000000] vmalloc : 0xc9000000 - 0xe0000000 ( 368 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8a00000 ( 138 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .init : 0xc0008000 - 0xc002d000 ( 148 kB)
[ 0.000000] .text : 0xc002d000 - 0xc052f000 (5128 kB)
[ 0.000000] .data : 0xc0530000 - 0xc0563820 ( 207 kB)
[ 0.000000] Preemptable hierarchical RCU implementation.
[ 0.000000] RCU-based detection of stalled CPUs is disabled.
[ 0.000000] Verbose stalled-CPUs detection is disabled.
[ 0.000000] NR_IRQS:224
[ 0.000000] sched_clock: 32 bits at 72MHz, resolution 13ns, wraps every 59652ms
[ 0.000000] sched_clock: wrong multiply/shift: 1864135111>>27 vs calculated 3728270222>>28
[ 0.000000] sched_clock: fix multiply/shift to avoid scheduler hiccups
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [ttyS0] enabled
[ 0.274238] Calibrating delay loop... 525.92 BogoMIPS (lpj=2629632)
[ 0.532811] pid_max: default: 32768 minimum: 301
[ 0.537820] Mount-cache hash table entries: 512
[ 0.543130] CPU: Testing write buffer coherency: ok
[ 0.554587] NET: Registered protocol family 16
[ 0.569507] Ambarella Coconut:
[ 0.572809] chip id: 5100
[ 0.575611] board type: 3
[ 0.578399] board revision: 10
[ 0.581771] chip name: a5m
[ 0.584670] HAL version: 176869
[ 0.587989] reference clock: 24000000
[ 0.591819] system configuration: 0x173804ea
[ 0.596189] boot type: 0x00000002
[ 0.599679] hif type: 0x00000000
[ 0.628877] bio: create slab <bio-0> at 0
[ 0.635560] ambarella-spi ambarella-spi.0: ambarella SPI Controller 0 created
[ 0.653015] ambarella-i2c ambarella-i2c.0: Ambarella Media Processor I2C adapter[i2c-0] probed!
[ 0.663399] ambarella-i2c ambarella-i2c.1: Ambarella Media Processor I2C adapter[i2c-1] probed!
[ 0.673609] i2c i2c-0: Added multiplexed i2c bus 2
[ 0.678427] ambarella-i2cmux ambarella-i2cmux.0: mux on ambarella-i2c adapter
[ 0.688431] Advanced Linux Sound Architecture Driver Version 1.0.23.
[ 0.698501] cfg80211: Calling CRDA to update world regulatory domain
[ 0.706348] Switching to clocksource ambarella-cs-timer
[ 0.720182] Switched to NOHz mode on CPU #0
[ 0.776320] NET: Registered protocol family 2
[ 0.781013] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.789145] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.796566] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.803218] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.809581] TCP reno registered
[ 0.812830] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.818701] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.825658] NET: Registered protocol family 1
[ 0.830765] RPC: Registered udp transport module.
[ 0.835637] RPC: Registered tcp transport module.
[ 0.840364] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.847336] Trying to unpack rootfs image as initramfs...
[ 0.855127] rootfs image is not initramfs (no cpio magic); looks like an initrd
[ 0.895522] Freeing initrd memory: 4096K
[ 0.902354] [ kernel version: svn-174544 ]
[ 0.906618] mmc0 power register success!
[ 0.910567] mmc1 power register success!
[ 0.914868] reboot times :8
[ 0.943344] msgmni has been set to 185
[ 0.956013] alg: No test for stdrng (krng)
[ 0.960254] io scheduler noop registered
[ 0.964470] io scheduler deadline registered
[ 0.968913] io scheduler cfq registered (default)
[ 0.977256] ambarella-fb ambarella-fb.0: probe p[720x480] v[720x576] c[1] b[0] l[736] @ [0xc5980000:0x00068000]!
[ 0.989319] ambarella-uart.0: ttyS0 at MMIO 0x70005000 (irq = 9) is a ambuart
[ 1.035157] brd: module loaded
[ 1.051884] loop: module loaded
[ 1.058350] NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD NAND 128MiB 3,3V 8-bit)
[ 1.066976] ambarella_nand_config_flash: 0x02e00140, 0x02c00140
[ 1.073422] Bad block table found at page 65472, version 0x01
[ 1.079635] Bad block table found at page 65408, version 0x01
[ 1.090875] ambarella-nand ambarella-nand: ambarella_nand_probe: Partition infomation found!
[ 1.099452] Creating 18 MTD partitions on "ambnand":
[ 1.104518] 0x000000000000-0x000000020000 : "bst"
[ 1.113093] 0x000000020000-0x000000120000 : "ptb"
[ 1.121357] 0x000000120000-0x000000220000 : "bld"
[ 1.129917] 0x000000220000-0x000000320000 : "hal"
[ 1.138485] 0x000000320000-0x000000420000 : "ano_ptb"
[ 1.147426] 0x000000420000-0x0000004a0000 : "env"
[ 1.156122] 0x0000004a0000-0x000000520000 : "param"
[ 1.164983] 0x000000520000-0x000000620000 : "dpt"
[ 1.173696] 0x000000620000-0x000001020000 : "rcvy"
[ 1.182600] 0x000001020000-0x000001820000 : "krn_pri"
[ 1.191340] 0x000001820000-0x000002020000 : "krn_sec"
[ 1.200380] 0x000002020000-0x000002420000 : "rmd_pri"
[ 1.209395] 0x000002420000-0x000002820000 : "rmd_sec"
[ 1.218495] 0x000002820000-0x000004020000 : "app_pri"
[ 1.227642] 0x000004020000-0x000005820000 : "app_sec"
[ 1.236877] 0x000005820000-0x000005c20000 : "cfg_pri"
[ 1.246070] 0x000005c20000-0x000006020000 : "cfg_sec"
[ 1.255369] 0x000006020000-0x000007020000 : "dbg"
[ 1.270684] PPP generic driver version 2.4.2
[ 1.276481] PPP Deflate Compression module registered
[ 1.281557] PPP BSD Compression module registered
[ 1.478596] Ambarella MII Bus: probed
[ 1.483937] ambarella-eth ambarella-eth.0: MAC Address[28:57:be:23:3c:ea].
[ 1.491546] console [netcon0] enabled
[ 1.495388] netconsole: network logging started
[ 1.501438] mousedev: PS/2 mouse device common for all mice
[ 1.508172] input: AmbInput as /devices/virtual/input/input0
[ 1.514952] ambarella_gpio_irq_set_wake: irq[75] = girq[11] = 1
[ 1.520898] ambarella-input ambarella-input: AmbInput probed!
[ 1.527755] ambarella-adc ambarella-adc: ADC Host Controller [polling mode] probed!
[ 1.537144] ambarella-rtc ambarella-rtc: rtc core: registered ambarella-rtc as rtc0
[ 1.545512] i2c /dev entries driver
[ 1.553743] ambarella-wdt ambarella-wdt: Ambarella Media Processor Watch Dog Timer[ambarella-wdt].
[ 1.569139] ALSA device list:
[ 1.572372] No soundcards found.
[ 1.575950] Netfilter messages via NETLINK v0.30.
[ 1.580817] nf_conntrack version 0.5.0 (1480 buckets, 5920 max)
[ 1.587596] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.593205] TCP cubic registered
[ 1.596833] NET: Registered protocol family 10
[ 1.603847] Mobile IPv6
[ 1.606415] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 1.612051] IPv6 over IPv4 tunneling driver
[ 1.619933] NET: Registered protocol family 17
[ 1.625297] sctp: Hash tables configured (established 4096 bind 8192)
[ 1.632208] sctp: sctp_init_sock(sk: c58d5b20)
[ 1.636768] lib80211: common routines for IEEE802.11 drivers
[ 1.642544] lib80211_crypt: registered algorithm 'NULL'
[ 1.651631] ambarella-rtc ambarella-rtc: setting system clock to 2020-06-13 10:24:35 UTC (1592043875)
[ 1.661838] RAMDISK: gzip image found at block 0
[ 2.529267] VFS: Mounted root (ext2 filesystem) on device 1:0.
[ 2.535423] Freeing init memory: 148K
init started: BusyBox v1.19.3 (2016-05-23 16:23:55 CST)
starting pid 378, tty '': '-/bin/sh'
BusyBox v1.19.3 (2016-05-23 16:23:55 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
#
#
# mount -t proc proc /proc
#
# mount -t sysfs sysfs /sys
#
# mount -t ramfs ramfs /home
#
# /etc/S_udev
Starting udev: [ OK ]
#
# ifconfig eth0 192.168.1.64 up
[ 78.635544] net eth0: Could not find default PHY in 9.
[ 78.640714] net eth0: Try PHY[3] whose id is 0x001cc816!
[ 78.649664] ADDRCONF(NETDEV_UP): eth0: link is not ready
# [ 80.642447] PHY: 0:03 - Link is Up - 100/Full
[ 80.646996] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
#
# [ 91.552117] eth0: no IPv6 routers present
# mount -t nfs -o nolock 192.168.1.201:/cctv1 /mnt/nfs00
#
# ls -al /mnt/nfs00/mtdblock*
-rw-r--r-- 1 root root 4194304 Jun 13 10:09 /mnt/nfs00/mtdblock11
-rw-r--r-- 1 root root 25165824 Jun 13 10:09 /mnt/nfs00/mtdblock13
-rw-r--r-- 1 root root 10485760 Jun 13 10:09 /mnt/nfs00/mtdblock8
-rw-r--r-- 1 root root 8388608 Jun 13 10:08 /mnt/nfs00/mtdblock9
#
# cat /mnt/nfs00/mtdblock8 > /dev/mtdblock8
#
# cat /mnt/nfs00/mtdblock9 > /dev/mtdblock9
#
# cat /mnt/nfs00/mtdblock9 > /dev/mtdblock10
#
# cat /mnt/nfs00/mtdblock11 > /dev/mtdblock11
#
# cat /mnt/nfs00/mtdblock11 > /dev/mtdblock12
#
# cat /mnt/nfs00/mtdblock13 > /dev/mtdblock13
#
# cat /mnt/nfs00/mtdblock13 > /dev/mtdblock14
#
#
#
# reboot
The system is going down NOW!
Sent SIGTERM to all processes
Terminated
Sent SIGKILL to all processes
[ 261.383964] Restarting system.
U-Boot 1.3.4-121219 (Apr 8 2015 - 14:34:29)
ARM Clock: 480MHz
DDR Clock: 336MHz
Hit Ctrl+u to stop autoboot: 2
HKVS #
HKVS #
HKVS # setenv bootargs console=ttyS0 initrd=0xc0a00000,0x400000 rw root=/dev/ram dbg=0
HKVS # saveenv
Writing env to Nand... done
HKVS #
HKVS # printenv
ipaddr=192.0.0.64
serverip=192.0.0.128
gatewayip=0.0.0.0
netmask=255.255.255.0
ethaddr=28:57:be:23:3c:ea
loadaddr=0xc2000000
bootfile=digicap.dav
bootcmd=null
bootargs=console=ttyS0 initrd=0xc0a00000,0x400000 rw root=/dev/ram dbg=0
bootdelay=2
HKVS #