Coder Social home page Coder Social logo

linux's Introduction

OpenIPC logo

Linux

Linux kernels for OpenIPC firmware

Telegram

Repository branches by manufacturer and processor

linux's People

Contributors

ystinia avatar zigfisher avatar flyrouter avatar

linux's Issues

Initial FH8856V100 board overview

SOC

Vendor: Fullhan
Model: FH8856V100

Sensor

Vendor: GalaxyCore
Model: GC4653

Other

  • Ethernet
  • No WiFi
  • No SD card

Original firmware

Board can be connected using UART.

UART log

U-Boot 2010.06 (Jul 26 2022 - 14:22:43)
DRAM:  128 MiB
SF: Got idcode 68 40 17 68 40
use default flash ops...
spi_flash_probe_default multi wire open flag is 0
In:    serial
Out:   serial
Err:   serial
MMC:   FH_MMC: 0
MMC FLASH INIT: No card on slot!
Net:   set to RMII
FH EMAC
Hit any key to stop autoboot:  0
SF: Got idcode 68 40 17 68 40
use default flash ops...
spi_flash_probe_default multi wire open flag is 0
current fw 10889
MAC: f6:70:00:0b:f7:c6
set to RMII
PHY OUI: 0x937c4024 at phyid: 0
***ERROR: auto negotiation timeout
retry 1
retry 2
net update try timeout
SF: Got idcode 68 40 17 68 40
use default flash ops...
spi_flash_probe_default multi wire open flag is 0
8192 KiB default_flash at 0:0 is now current device
 Booting kernel from Legacy Image at a1000000 ...
   Image Name:   Linux-3.0.8
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2393484 Bytes = 2.3 MiB
   Load Address: a0008000
   Entry Point:  a0008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
prepare atags
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[    0.000000] Linux version 3.0.8 (appollo@Trusty) (gcc version 5.5.0 (b220190606) ) #1 Tue Jul 26 18:06:43 CST 2022
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: FH8852
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 9144
[    0.000000] Kernel command line: mem=36M console=ttyS0,115200 root=/dev/mtdblock2 rootfstype=squashfs mtdparts=spi_flash:320K(uboot),2560K(kernel),4096K(appfs),832K(custom),320K(config),64K(data)
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 36MB = 36MB total
[    0.000000] Memory: 31424k/31424k available, 5440k 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     : 0xffc00000 - 0xffe00000   (   2 MB)
[    0.000000]     vmalloc : 0xc2800000 - 0xfe000000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc2400000   (  36 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .init : 0xc0008000 - 0xc00e5000   ( 884 kB)
[    0.000000]       .text : 0xc00e5000 - 0xc04ae000   (3876 kB)
[    0.000000]       .data : 0xc04ae000 - 0xc04d2600   ( 146 kB)
[    0.000000]        .bss : 0xc04d2624 - 0xc04f07f8   ( 121 kB)
[    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:128
[    0.000000] timer mult: 0xa0000000, timer shift: 0x1b
[    0.000000] sched_clock: 32 bits at 50MHz, resolution 20ns, wraps every 85899ms
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [ttyS0] enabled
[    0.176984] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[    0.240010] pid_max: default: 32768 minimum: 301
[    0.244623] Mount-cache hash table entries: 512
[    0.249346] CPU: Testing write buffer coherency: ok
[    0.254476] devtmpfs: initialized
[    0.259712] NET: Registered protocol family 16
[    0.264212] FH8856 board init
[    0.331984] bio: create slab  at 0
[    0.333787] cannot get dmac0_hclk
[    0.338553] fh_dmac fh_dmac.0: FH DMA Controller, 6 channels
[    0.344327] usbcore: registered new interface driver usbfs
[    0.348097] usbcore: registered new interface driver hub
[    0.353299] usbcore: registered new device driver usb
[    0.361260] cfg80211: Calling CRDA to update world regulatory domain
[    0.366687] Switching to clocksource fh_clocksource
[    0.370063] Switched to NOHz mode on CPU #0
[    0.408509] NET: Registered protocol family 2
[    0.410206] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.417232] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.423955] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.430221] TCP: Hash tables configured (established 2048 bind 2048)
[    0.436448] TCP reno registered
[    0.439570] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.445405] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.451948] NET: Registered protocol family 1
[    0.456398] RPC: Registered named UNIX socket transport module.
[    0.461818] RPC: Registered udp transport module.
[    0.466427] RPC: Registered tcp transport module.
[    0.471125] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.896100] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.917840] JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    1.930272] msgmni has been set to 61
[    1.941116] NET: Registered protocol family 38
[    1.942752] io scheduler noop registered (default)
[    1.957283] fh_pwm_probe: clk_rate: 50000000
[    1.963356] PWM driver, Number: 8, IO base addr: 0xc3070000
[    1.975342] ttyS.0: ttyS0 at MMIO 0xf0700000 (irq = 30) is a ttyS
[    1.983647] ttyS.1: ttyS1 at MMIO 0xf0800000 (irq = 31) is a ttyS
[    2.005655] brd: module loaded
[    2.042211] CLK misc driver init successfully
[    2.075508] m25p80 spi0.0: found BY25Q64AS, expected m25p80
[    2.078501] m25p80 spi0.0: set_qe : 235  default not support multi wire..
[    2.085958] m25p80 spi0.0: BY25Q64AS (8192 Kbytes)
[    2.091159] DEBUG-CMDLINE-PART: parsing <320K(uboot),2560K(kernel),4096K(appfs),832K(custom),320K(config),64K(data)>
[    2.102662] DEBUG-CMDLINE-PART: partition 5: name , offset ffffffff, size 10000, mask flags 0
[    2.112540] DEBUG-CMDLINE-PART: partition 4: name , offset ffffffff, size 50000, mask flags 0
[    2.122609] DEBUG-CMDLINE-PART: partition 3: name , offset ffffffff, size d0000, mask flags 0
[    2.132683] DEBUG-CMDLINE-PART: partition 2: name , offset ffffffff, size 400000, mask flags 0
[    2.142758] DEBUG-CMDLINE-PART: partition 1: name , offset ffffffff, size 280000, mask flags 0
[    2.152928] DEBUG-CMDLINE-PART: partition 0: name , offset ffffffff, size 50000, mask flags 0
[    2.162908] DEBUG-CMDLINE-PART: mtdid= num_parts=<6>
[    2.169354] 6 cmdlinepart partitions found on MTD device spi_flash
[    2.176131] Creating 6 MTD partitions on "spi_flash":
[    2.181655] 0x000000000000-0x000000050000 : "uboot"
[    2.206873] 0x000000050000-0x0000002d0000 : "kernel"
[    2.227894] 0x0000002d0000-0x0000006d0000 : "appfs"
[    2.248813] 0x0000006d0000-0x0000007a0000 : "custom"
[    2.270070] 0x0000007a0000-0x0000007f0000 : "config"
[    2.290272] 0x0000007f0000-0x000000800000 : "data"
[    2.343705] console [netcon0] enabled
[    2.344588] netconsole: network logging started
[    2.381646] resource: start=e0700000, len=00100000
[    2.383830] base=0xc3200000 (after adjust)
[    2.388336] fh_otg_driver_probe: mapped PA 0xe0700000 to VA 0xc3200000
[    2.495342] Core Release: 4.00a
[    2.495662] Setting default values for core params
[    2.700426] dma_enable :1
[    2.700450] dma_desc_enable :1
[    2.903058] Using Descriptor DMA mode
[    2.903946] Periodic Transfer Interrupt Enhancement - disabled
[    2.910338] Multiprocessor Interrupt Enhancement - disabled
[    2.916396] OTG VER PARAM: 0, OTG VER FLAG: 0
[    2.921175] FH OTG HCD INIT (c1051980)
[    2.925238] hcd regs before base(c3200000)
[    2.929764] fh_otg fh_otg: FH OTG Controller
[    2.934494] fh_otg fh_otg: new USB bus registered, assigned bus number 1
[    2.941769] fh_otg fh_otg: irq 27, io mem 0x00000000
[    2.947121] Init: Power Port (0)
[    2.950788] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.958026] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.965955] usb usb1: Product: FH OTG Controller
[    2.970979] usb usb1: Manufacturer: Linux 3.0.8 fh_otg_hcd
[    2.976936] usb usb1: SerialNumber: fh_otg
[    2.987145] hub 1-0:1.0: USB hub found
[    2.988147] hub 1-0:1.0: 1 port detected
[    3.001922] i2c /dev entries driver
[    3.007055] I2C driver:
[    3.007068]  platform registration...
[    3.010621]  Clock: 50000khz, Standard-mode HCNT:LCNT = 212:249
[    3.017168]  tx fifo depth: 16, rx fifo depth: 16
[    3.030114]  I2C - (dev. name: fh_i2c - id: 0, IRQ #11
[    3.030126]          IO base addr: 0xc30a0000)
[    3.036830] I2C driver:
[    3.036838]  platform registration...
[    3.043467]  Clock: 50000khz, Standard-mode HCNT:LCNT = 212:249
[    3.050053]  tx fifo depth: 16, rx fifo depth: 16
[    3.074771]  I2C - (dev. name: fh_i2c - id: 1, IRQ #12
[    3.074784]          IO base addr: 0xc30a8000)
[    3.108979] card0 disconnected!
[    3.123945] TCP cubic registered
[    3.124363] NET: Registered protocol family 17
[    3.129267] lib80211: common routines for IEEE802.11 drivers
[    3.135469] Registering the dns_resolver key type
[    3.140585] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    3.188215] GMAC driver:
[    3.188229]  platform registration...
[    3.191910]  using random MAC address: 46:cb:e6:82:1d:b5
[    3.201011] fh_gmac fh_gmac.0: eth0: mixed HW and IP checksum settings.
[    3.205139] fh_gmac fh_gmac.0: eth0: mixed no checksumming and other settings.
[    3.213253]  eth0 - (dev. name: fh_gmac - id: 0, IRQ #15
[    3.213267]          IO base addr: 0xc30c8000)
[    3.251067] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    3.286606] aes driver registered
[    3.290606] Freeing init memory: 884K
starting pid 489, tty '': '/etc/init.d/rcS'
[RCS]: /etc/init.d/S01udev
Starting udev:      [ OK ]
[RCS]: /etc/init.d/S03network
starting pid 575, tty '/dev/ttyS0': '/bin/login'
LOGIN
IPCam login: killall: udhcpc: no process killed
route: ioctl 0x890c failed: No such process
 [DEBUG] [IPCam] [1970-01-01 08:00:11] (ipcam.c:main:465) ipcam version is V1.08.89 build 20220801 18:07:30
system: ln -s /usr/app/www/img/login_bg.png /tmp/www/login_bg.png
system: ln -s /usr/app/www/js/language/en-us.js /tmp/www/js/en-us.js
system: ln -s /usr/app/www/js/language/ko-kr.js /tmp/www/js/ko-kr.js
system: ln -s /usr/app/www/js/language/ru-ru.js /tmp/www/js/ru-ru.js
system: ln -s /usr/app/www/js/language/tr-tr.js /tmp/www/js/tr-tr.js
system: ln -s /usr/app/www/js/language/zh-cn.js /tmp/www/js/zh-cn.js
system: ln -s /usr/app/www/js/language/zh-tw.js /tmp/www/js/zh-tw.js
system: ln -s /usr/app/sensor/gc4653_mipi_attr.hex /tmp/sensor/gc4653_mipi_attr.hex
system: ln -s /usr/app/sensor/gc4653_mipi_night_attr.hex /tmp/sensor/gc4653_mipi_night_attr.hex
system: ln -s /usr/app/sensor/gc4653_mipi_wdr_attr.hex /tmp/sensor/gc4653_mipi_wdr_attr.hex
system: ln -s /usr/app/sensor/gc4653_mipi_wdr_night_attr.hex /tmp/sensor/gc4653_mipi_wdr_night_attr.hex
system: ln -s /usr/app/sensor/gc4653_mipi_wdr_whitelight_attr.hex /tmp/sensor/gc4653_mipi_wdr_whitelight_attr.hex
system: ln -s /usr/app/sensor/gc4653_mipi_whitelight_attr.hex /tmp/sensor/gc4653_mipi_whitelight_attr.hex
 [     NET] [3635] iface eth0 support=1 carrier=0
 [     NET] [3624] iface wlan0 support=0 carrier=0
[main, 630] ************ debug ************
p2p_type 4
p2p_id PPHC012DB02932A362
mac F6:70:00:0B:F7:C6
serial_num 3000784326
build_time 1684551005
data_len 208
read auth ok
[main, 673] ************ debug ************
[main, 688] ************ debug ************
 [INFO] [SYS_CTRL] [1970-01-01 08:00:11] (sys_ctrl.c:sysctrl_read_hw_config:438) read hwconfig ok
[main, 712] ************ debug ************
open file '/tmp/etc/config/double_sensor.conf' failed
 [ERROR] [SYS_CTRL] [1970-01-01 08:00:11] (sys_ctrl.c:sysctrl_read_double_sensor_config:12520) read sensor config failed: No such file or directory
[main, 714] ************ debug ************
try sensor GC4653_MIPI
[sensor] version:       V1.2.0(gaee6fa1),build: 2020-03-24
ERROR: Unable to read sensor register!: Remote I/O error
ERROR: Unable to read sensor register!: Remote I/O error
[sensor] version:       V1.2.0(gaee6fa1),build: 2020-03-24
 [        ] [1144] detected sensor gc4653_mipi
[main, 717] ************ debug ************
net config:dhcp=0, ip=169.254.38.78, mask=255.255.255.0, gw=169.254.38.1, dns=114.114.114.114
wifi support 0
 [     NET] [1456] eth0 link down
 [     NET] [1474] eth0 Hardware address is F6:70:00:0B:F7:C6
**************************** net iface change to eth0 ********************************
net config:dhcp=0, ip=192.168.1.10, mask=255.255.255.0, gw=192.168.1.1, dns=114.114.114.114
[main, 719] ************ debug ************
[main, 721] ************ debug ************
 [     NTP] [ 260] get attr ok
 [     NTP] [ 320] get attr ok
[main, 723] ************ debug ************
[admin]=[123456]
[]=[]
[]=[]
[]=[]
[]=[]
[]=[]
[]=[]
[]=[]
[]=[]
[]=[]
 [ ACCOUNT] [ 189] init ok
[main, 725] ************ debug ************
[dsp] version: V1.2.0(gcd1ec21),build: 2020-03-24
bgm driver not install
[isp] version:  V1.2.0.P7(g8f2e7ef),build: 2021-09-02
[ispcore] version:      V1.2.0.P7(g8f2e7ef),build: 2021-09-02
[sensor] version:       V1.2.0(gaee6fa1),build: 2020-03-24
ERROR: Unable to read sensor register!: Remote I/O error
ERROR: Unable to read sensor register!: Remote I/O error
[sensor] version:       V1.2.0(gaee6fa1),build: 2020-03-24
[sensor] version:       V1.2.0(gaee6fa1),build: 2020-03-24
[mipi] version: V1.2.0(gaee6fa1),build: 2020-03-24
[main, 728] ************ debug ************
venc chn 0 default attr: w=3840, h=2160, fps=15, bitrate=3072
venc chn 1 default attr: w=704, h=576, fps=15, bitrate=512
 [        ] [ 173] create venc channel 0 ok
 [        ] [ 173] create venc channel 1 ok
 [   VIDEO] [ 155] init ok
[main, 731] ************ debug ************
AC version:             V1.2.0(g25ecbbe)
 [ [     OSD] [1589] start ok, channel = 0
[main, 847] ************ debug ************
 [        ] [ 909] channel=1, width=704, height=576, framerate=15, bitrate=512
 [        ] [ 296] set vpss channel 1: res=704 x 576, fps=15
 [        ] [ 280] set venc channel attr: channel=1, encoder=H265, w=704, h=576, framerate=15, gop=2
 [   VIDEO] [ 507] start channel 1, ret 0
[main, 845] ************ debug ************
 [     OSD] [1589] start ok, channel = 1
[main, 847] ************ debug ************
 [   AUDIO] [ 146] start ai 0
[main, 851] ************ debug ************
[main, 854] ************ debug ************
privacy mask is disabled
 [PRIVACY MASK] [  56] start -1
[main, 857] ************ debug ************
 [      PD] [ 564] start pd 0
[main, 860] ************ debug ************
----------------------------------
detectMode    0
maxScaleNum   40
slideStep     2
perScaleRate  128
rotateAngle   0
----------------------------------
pfd start...
fhobjdetect 0.5.9
objdetect 0.7.11fhimgprocess 0.4.9
imgprocess 0.6.2
fhgvbus 0.3.12
[main, 869] ************ debug ************
 [      MD] [ 340] start md 0
[main, 875] ************ debug ************
 [INFO] [XIAOCAO_CMD] [1970-01-01 08:00:13] (xiaocao.c:xiaocao_init:470) xc version is 2.00.04.40_220106

[ALWAY] [1970-01-01 08:00:13.307] [avsdk_init /01811] [iot ]:AVSDK VER: 2.00.04.40_220106
[INFO ] [1970-01-01 08:00:13.308] [osal_mq_sysi/00745] [osal.thread ]:osal_mq_sysinit(32), rc:0
[DEBUG] [ERROR] [1970-01-01 08:00:13.315] [iot_conn_sys/00610] [iot.conn ]:iot_conn_sysinit done
[1970-01-01 08:00:13.316] [upnpc_work /00582] [iot.dev.upnpc ]:========osal_tcp_server=0========

[INFO ] [1970-01-01 08:00:13.321] [upnpc_work /00590] [iot.dev.upnpc ]:========waiting for client's request========

[ALWAY] [1970-01-01 08:00:13.330] [avsdk_start /02462] [iot ]:call avsdk_start in!
[ALWAY] [1970-01-01 08:00:13.334] [pprpc_udpsrv/02209] [pprpc ]:local, udp://0.0.0.0.20190
[INFO ] [1970-01-01 08:00:13.337] [iot_dev_star/00423] [iot.dev ]:iot_dev_start, rc:0
[ALWAY] [1970-01-01 08:00:13.338] [avsdk_start /02465] [iot ]:call avsdk_start out=0!
[INFO] [XIAOCAO_CMD] [1970-01-01 08:00:13] (xiaocao.c:xiaocao_init:627) avsdk_start, rc:0(Hunky dory)
[DEBUG]
[1970-01-01 08:00:13.341] [ [INFO] [XIAOCAO_CMD] [1970-01-01 08:00:13] (xiaocao.c:xiaocao_init:630) start sdk done

iot_dev_goto/00117] [iot.dev ]:#####iot.dev.state(E_IOT_DEV_STATE_IDLE->E_IOT_DEV_STATE_GLBS_TRYING)####
[main, 878] ************ debug ************
[ALWAY] [1970-01-01 08:00:13.344] [iot_dev_glbs/00148] [iot.dev.glbs ]:===iot.dev.glbs state(IDLE->INIT)===
[ RTSP] [ 633] rtsp server started
[ALWAY] [main, 881] ************ debug ************
[1970-01-01 08:00:13.350] [iot_dev_glbs/00148] [iot.dev.glbs ]:===iot.dev.glbs state(INIT->RUN_TCP)===
[ALWAY] [1970-01-01 08:00:13.356onvif discovery start
[ ONVIF] [ 86] onvif started
[main, 884] ************ debug ************
[ GB28181] [ 182] disabled
[main, 905] ************ debug ************
] [iot_dev_glbs/00148] [iot.dev.glbs ]:===iot.dev.glbs state(RUN_TCP->RUN_TCP)===
[ALWAY] [1970-01-01 08:00:13.361] [iot_dev_glbs/00148] [iot.dev.glbs ]:===iot.dev.glbs state(RUN_TCP->RUN_UDP)===
[main, 908] ************ debug ************
[INFO] [TS] [1970-01-01 08:00:13] (tcp_server.c:tcp_server_start:1274) net server sdk build version May 5 2022, 20:07:14
[INFO] [HNPS] [1970-01-01 08:00:13] (m_transmit.c:m_transmit_init:735) hnps init ok
[main, 911] ************ debug ************
[INFO] [BC] [1970-01-01 08:00:13] (broadcast.c:_broadcast_recv_thread:56) ready to listen on port 38600
[main, 914] ************ debug ************
[main, 922] ************ debug ************
[main, 925] ************ debug ************
watchdog enabled, timeout=30
[ WDT] [ 15] open wat�enter night mode

Root password is unknown.
Boot can be interrupted with Ctrl+C

printenv

bootdelay=1
baudrate=115200
ipaddr=10.81.81.81
serverip=10.81.0.1
phymode=RMII
ethact=FH EMAC
product=IF56N
bootargs=mem=36M console=ttyS0,115200 root=/dev/mtdblock2 rootfstype=squashfs mtdparts=spi_flash:320K(uboot),2560K(kernel),4096K(appfs),832K(custom),320K(config),64K(data)
bootcmd=bootupdate;sf probe 0;sf read 0xa1000000 0x50000 0x280000;bootm 0xa1000000
stdin=serial
stdout=serial
stderr=serial
ethaddr=f6:70:00:0b:f7:c6

Environment size: 430/65532 bytes

tftp allows only download, so fw dump via tftp was not possible.
I managed to dump kernel using md.b via UART.
I could replace the root hash in /etc/passwd with my own.
After booting the patched kernel and logging in, I dumped the rest of the original firmware and run ipctool.

ipctool

chip:
  vendor: Fullhan
  model: FH8856V100
ethernet:
  mac: "f6:70:00:0b:f7:c6"
rom:
- type: nor
  block: 4K
  partitions:
    - name: uboot
      size: 0x50000
      sha1: 403efaeb
      contains:
        - name: uboot-env
          offset: 0x40000
    - name: kernel
      size: 0x280000
      sha1: d901f613
    - name: appfs
      size: 0x400000
      path: /usr/app,squashfs
      sha1: 18217fb9
    - name: custom
      size: 0xd0000
      path: /tmp/etc/custom,jffs2,rw
    - name: config
      size: 0x50000
      path: /tmp/etc/config,jffs2,rw
    - name: data
      size: 0x10000
      sha1: f5c5ca30
  size: 8M
ram:
  total: 32M
  media: 90M
firmware:
  kernel: "3.0.8 (Tue Jul 26 18:06:43 CST 2022)"
  toolchain: gcc version 5.5.0 (b220190606)
  libc: uClibc 0.9.33.2
  main-app: /tmp/ipcam
sensors:
- vendor: GalaxyCore
  model: GC4653
  control:
    bus: 0
    type: i2c
    addr: 0x52

OpenIPC

Compile from master

Compiled using make BOARD=fh8856v100_lite all
Flashed rootfs to the address of the original. Kept original U-Boot.
Tried to boot the kernel from RAM.
The kernel couldn't read the flash:
[ 0.514249] m25p80 spi0.0: unrecognized JEDEC id 684017

Patch

Patched the driver file.
This version reads rootfs and tries to load a little further. Fails when starting the network.

UART log

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Linux version 3.0.8 (eugene) (buildroot-gcc-12.3.0) #13 Wed Sep 6 19:22:45 EEST 2023
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: FH8852
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 9144
[ 0.000000] Kernel command line: mem=36M console=ttyS0,115200 root=/dev/mtdblock2 rootfstype=squashfs mtdparts=spi_flash:320K(uboot),2560K(kernel),4096K(appfs),832K(custom),320K(config),64K(data)
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 36MB = 36MB total
[ 0.000000] Memory: 32844k/32844k available, 4020k 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 : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xc2800000 - 0xfe000000 ( 952 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc2400000 ( 36 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .init : 0xc0008000 - 0xc0024000 ( 112 kB)
[ 0.000000] .text : 0xc0024000 - 0xc034f000 (3244 kB)
[ 0.000000] .data : 0xc0350000 - 0xc0370ee0 ( 132 kB)
[ 0.000000] .bss : 0xc0370f04 - 0xc038d65c ( 114 kB)
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:128
[ 0.000000] timer mult: 0xa0000000, timer shift: 0x1b
[ 0.000000] sched_clock: 32 bits at 50MHz, resolution 20ns, wraps every 85899ms
[ 0.000000] console [ttyS0] enabled
[ 0.171592] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[ 0.230008] pid_max: default: 32768 minimum: 301
[ 0.234646] Mount-cache hash table entries: 512
[ 0.239355] CPU: Testing write buffer coherency: ok
[ 0.244492] devtmpfs: initialized
[ 0.249804] NET: Registered protocol family 16
[ 0.253689] FH8856 board init
[ 0.319406] bio: create slab at 0
[ 0.321520] cannot get dmac0_hclk
[ 0.326049] fh_dmac fh_dmac.0: FH DMA Controller, 6 channels
[ 0.331809] usbcore: registered new interface driver usbfs
[ 0.335538] usbcore: registered new interface driver hub
[ 0.340704] usbcore: registered new device driver usb
[ 0.348370] Switching to clocksource fh_clocksource
[ 0.355399] NET: Registered protocol family 2
[ 0.357050] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.363770] Switched to NOHz mode on CPU #0
[ 0.368224] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.374989] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.381242] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.387483] TCP reno registered
[ 0.390629] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.396408] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.403009] NET: Registered protocol family 1
[ 0.407386] RPC: Registered named UNIX socket transport module.
[ 0.412852] RPC: Registered udp transport module.
[ 0.417463] RPC: Registered tcp transport module.
[ 0.422159] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.452797] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.457326] JFFS2 version 2.2. (NAND) c 2001-2006 Red Hat, Inc.
[ 0.464034] msgmni has been set to 64
[ 0.466833] NET: Registered protocol family 38
[ 0.469808] io scheduler noop registered (default)
[ 0.476074] fh_pwm_probe: clk_rate: 50000000
[ 0.479224] PWM driver, Number: 8, IO ba[ 0.485322] ttyS.0: ttyS0 at MMIO 0xf0700000 (irq = 30) is a ttyS
[ 0.489161] ttyS.1: ttyS1 at MMIO 0xf0800000 (irq = 31) is a ttyS
[ 0.496795] brd: module loaded
[ 0.505975] loop: module loaded
[ 0.509625] CLK misc driver init successfully
[ 0.514277] m25p80 spi0.0: found by25q64as, expected m25p80
[ 0.517002] m25p80 spi0.0: set_qe : 235 default not support multi wire..
[ 0.523795] m25p80 spi0.0: by25q64as (8192 Kbytes)
[ 0.528482] DEBUG-CMDLINE-PART: parsing <320K(uboot),2560K(kernel),4096K(appfs),832K(custom),320K(config),64K(data)>
[ 0.538943] DEBUG-CMDLINE-PART: partition 5: name , offset ffffffff, size 10000, mask flags 0
[ 0.547919] DEBUG-CMDLINE-PART: partition 4: name , offset ffffffff, size 50000, mask flags 0
[ 0.557078] DEBUG-CMDLINE-PART: partition 3: name , offset ffffffff, size d0000, mask flags 0
[ 0.566257] DEBUG-CMDLINE-PART: partition 2: name , offset ffffffff, size 400000, mask flags 0
[ 0.575414] DEBUG-CMDLINE-PART: partition 1: name , offset ffffffff, size 280000, mask flags 0
[ 0.584659] DEBUG-CMDLINE-PART: partition 0: name , offset ffffffff, size 50000, mask flags 0
[ 0.593732] DEBUG-CMDLINE-PART: mtdid=<spi_flash> num_parts=<6>
[ 0.599593] 6 cmdlinepart partitions found on MTD device spi_flash
[ 0.605746] Creating 6 MTD partitions on "spi_flash":
[ 0.610776] 0x000000000000-0x000000050000 : "uboot"
[ 0.617887] 0x000000050000-0x0000002d0000 : "kernel"
[ 0.622750] 0x0000002d0000-0x0000006d0000 : "appfs"
[ 0.627487] 0x0000006d0000-0x0000007a0000 : "custom"
[ 0.632647] 0x0000007a0000-0x0000007f0000 : "config"
[ 0.637401] 0x0000007f0000-0x000000800000 : "data"
[ 0.645043] console [netcon0] enabled
[ 0.645847] netconsole: network logging started
[ 0.682471] resource: start=e0700000, len=00100000
[ 0.684467] base=0xc2a00000 (after adjust)
[ 0.688555] fh_otg_driver_probe: mapped PA 0xe0700000 to VA 0xc2a00000
[ 0.794922] Core Release: 4.00a
[ 0.795214] Setting default values for core params
[ 0.999503] dma_enable :1
[ 0.999526] dma_desc_enable :1
[ 1.201901] Using Descriptor DMA mode
[ 1.202713] Periodic Transfer Interrupt Enhancement - disabled
[ 1.208499] Multiprocessor Interrupt Enhancement - disabled
[ 1.214056] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 1.218353] FH OTG HCD INIT (c1d40680)
[ 1.222096] hcd regs before base(c2a00000)
[ 1.226173] fh_otg fh_otg: FH OTG Controller
[ 1.230561] fh_otg fh_otg: new USB bus registered, assigned bus number 1
[ 1.237066] fh_otg fh_otg: irq 27, io mem 0x00000000
[ 1.242010] Init: Power Port (0)
[ 1.245285] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.251923] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.259047] usb usb1: Product: FH OTG Controller
[ 1.263654] usb usb1: Manufacturer: Linux 3.0.8 fh_otg_hcd
[ 1.269068] usb usb1: SerialNumber: fh_otg
[ 1.274611] hub 1-0:1.0: USB hub found
[ 1.276873] hub 1-0:1.0: 1 port detected
[ 1.282142] cannot get rtc_pclk
[ 1.299883] rtc GET CORE REG TIMEOUT line 349
[ 1.301404] rtc get time:rtc core busy
[ 1.305092] rtc get time:rtc core busy
[ 1.308806] rtc get time:rtc core busy
[ 1.312563] fh rtc get time error
[ 1.315815] rtc get time:rtc core busy 335
[ 1.320412] fh_rtc fh_rtc.0: rtc core: registered rtc as rtc0
[ 1.326131] rtc get time:rtc core busy
[ 1.329285] rtc get time:rtc core busy
[ 1.333048] rtc get time:rtc core busy
[ 1.336715] rtc get time:rtc core busy
[ 1.340429] rtc get time:rtc core busy
[ 1.344171] rtc get time:rtc core busy
[ 1.347860] rtc get time:rtc core busy
[ 1.351594] rtc get time:rtc core busy
[ 1.355290] rtc get time:rtc core busy
[ 1.359004] rtc get time:rtc core busy
[ 1.362738] rtc get time:rtc core busy
[ 1.366435] rtc get time:rtc core busy
[ 1.370155] rtc get time:rtc core busy 335
[ 1.374230] rtc get time:rtc core busy
[ 1.377929] rtc get time:rtc core busy 335
[ 1.382013] rtc get time:rtc core busy
[ 1.385703] rtc get time:rtc core busy
[ 1.389857] i2c /dev entries driver
[ 1.393328] I2C driver:
[ 1.393342] platform registration...
[ 1.398886] Clock: 50000khz, Standard-mode HCNT:LCNT = 212:249
[ 1.404939] tx fifo depth: 16, rx fifo depth: 16
[ 1.410437] I2C - (dev. name: fh_i2c - id: 0, IRQ #11
[ 1.410448] IO base addr: 0xc28a8000)
[ 1.418533] I2C driver:
[ 1.418546] platform registration...
[ 1.424497] Clock: 50000khz, Standard-mode HCNT:LCNT = 212:249
[ 1.430496] tx fifo depth: 16, rx fifo depth: 16
[ 1.436740] I2C - (dev. name: fh_i2c - id: 1, IRQ #12
[ 1.436751] IO base addr: 0xc28b0000)
[ 1.446701] card0 disconnected!
[ 1.457738] card1 disconnected!
[ 1.458319] TCP cubic registered
[ 1.463825] NET: Registered protocol family 10
[ 1.467233] NET: Registered protocol family 17
[ 1.470224] lib80211: common routines for IEEE802.11 drivers
[ 1.475728] Registering the dns_resolver key type
[ 1.480354] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 1.490191] GMAC driver:
[ 1.490204] platform registration...
[ 1.494118] using random MAC address: 66:1f:4e:69:f2:f2
[ 1.500114] fh_gmac fh_gmac.0: eth0: mixed HW and IP checksum settings.
[ 1.506035] fh_gmac fh_gmac.0: eth0: mixed no checksumming and other settings.
[ 1.513510] eth0 - (dev. name: fh_gmac - id: 0, IRQ #15
[ 1.513522] IO base addr: 0xc28d0000)
[ 1.522634] fh rtc get time error
[ 1.525543] fh_rtc fh_rtc.0: setting system clock to 2059-09-19 08:04:03 UTC (2831184243)
[ 1.535897] aes driver registered
[ 1.543672] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 1.555108] devtmpfs: mounted
[ 1.555331] Freeing init memory: 112K
[ 2.385866] devpts: called with bogus options
Wed Sep 6 16:56:47 GMT 2023
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Loading modules:modprobe: module f2fs not found in modules.dep
modprobe: module exfat not found in modules.dep
seedrng: can't create directory '/var/lib/seedrng': Read-only file system
Starting rngd: GPIO not set. Exiting
OK
Cannot open config file '/etc/fw_env.config': Read-only file system
Starting mdev...
Starting network: [ 3.359977] Unable to handle kernel paging request at virtual address 00006e78
[ 3.364395] pgd = c1ec8000
[ 3.367010] [00006e78] *pgd=00000000
[ 3.370586] Internal error: Oops: 5 [#1]
[ 3.374439] Modules linked in: vfat fat
[ 3.378244] CPU: 0 Not tainted (3.0.8 #13)
[ 3.382658] PC is at rtnl_fill_ifinfo+0xa0/0x738
[ 3.387232] LR is at rtnl_fill_ifinfo+0x6c/0x738
[ 3.391813] pc : [] lr : [] psr: a0000013
[ 3.391823] sp : c1e8bbb0 ip : c1e9f6e0 fp : c1e8bc9c
[ 3.403211] r10: c0388040 r9 : 00000000 r8 : 00000010
[ 3.408397] r7 : 000001e3 r6 : c1e26000 r5 : 00006d78 r4 : c1e9f6e0
[ 3.414877] r3 : 00006e78 r2 : 00000020 r1 : c1e26020 r0 : c1e26000
[ 3.421357] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 3.428443] Control: 00c5387d Table: a1ec8008 DAC: 00000015
[ 3.434144] Process ip (pid: 483, stack limit = 0xc1e8a268)
[ 3.439674] Stack: (0xc1e8bbb0 to 0xc1e8c000)
[ 3.443999] bba0: 00000000 00000000 00000000 00000000
[ 3.452123] bbc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 3.460245] bbe0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 3.468366] bc00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 3.476488] bc20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 3.484611] bc40: 00000000 c1e8bca0 00000007 0000000e 00000014 0000001a 00000000 c1e8be46
[ 3.492733] bc60: c0367db0 00000020 0000000a 0000000a c1e8bc9c c1d6c580 00000000 00000000
[ 3.500856] bc80: 00006f6c c1e9f6e0 00000000 c0388040 c1e8bcdc c1e8bca0 c01ea2a0 c01e9ae4
[ 3.508977] bca0: 64f8af50 00000000 00000002 c1e9da00 c01ea210 c1e9f6e0 c1e9da00 c1d6c580
[ 3.517099] bcc0: c1e9da00 c01ea210 00000014 c0388704 c1e8bd04 c1e8bce0 c01f28c0 c01ea21c
[ 3.525221] bce0: c1e9da2c c1e9da20 c1d6c580 c1e9da00 c01ea210 00000014 c1e8bd2c c1e8bd08
[ 3.533342] bd00: c01f2e4c c01f287c c1e2e200 c01ea210 c1e9f000 00000002 00000000 00000014
[ 3.541464] bd20: c1e8bd5c c1e8bd30 c01eb01c c01f2d08 00000000 c0370858 60000113 c1e9f000
[ 3.549586] bd40: c1e2e200 c01eaf38 c1c2bc00 c1e9da00 c1e8bd7c c1e8bd60 c01f4b88 c01eaf44
[ 3.557708] bd60: c1e9f000 c1c2bc2c c1c2bc20 c1c2bc00 c1e8bd94 c1e8bd80 c01ea570 c01f4b24
[ 3.565829] bd80: c1e9f000 c1c2bc2c c1e8bdd4 c1e8bd98 c01f4554 c01ea55c c1e8a000 00000000
[ 3.573950] bda0: 00000014 7fffffff 00000014 c1e9f000 00000000 c1e8be50 c1e9da00 00000014
[ 3.582072] bdc0: c1e8be30 00000000 c1e8be2c c1e8bdd8 c01f4998 c01f433c c1e8be34 c1e8bde8
[ 3.590192] bde0: c007cbf0 00000000 c1d6c6c0 c1dc6300 00000000 000001e3 00000000 00000000
[ 3.598315] be00: 402a7000 c1e8bea8 c01f46a8 c1e8bea0 c1e8bea4 00000014 c1e8a000 00000000
[ 3.606437] be20: c1e8be94 c1e8be30 c01ccc1c c01f46b4 c007e5d0 c007c830 00000069 00000014
[ 3.614558] be40: c1812420 00000001 c1e8bde8 c1e8be50 00000000 00000000 c1e8bea0 00000001
[ 3.622679] be60: 00000000 00000000 00000000 c1e8bea8 c1e91900 c1e8bf78 c1dc6e00 fffffdee
[ 3.630800] be80: 00000000 00000000 c1e8bf3c c1e8be98 c008d588 c01ccb64 00000000 00000000
[ 3.638923] bea0: be9cbc1c 00000000 c1e8bfb0 402a7258 00000000 00000001 ffffffff c1dc6e00
[ 3.647043] bec0: 00000000 00000000 00000000 00000000 c1cacd20 c01cd568 00000000 00000000
[ 3.655165] bee0: 00000000 00000000 c1e8be30 40195444 00000014 00000000 00000014 c1e8bf08
[ 3.663288] bf00: c0024288 c002d810 00000010 000001e3 00000000 c1e8bf20 c01cc8b0 c008e9d0
[ 3.671410] bf20: 00000014 c1dc6e00 be9cbc08 c1e8bf78 c1e8bf6c c1e8bf40 c008da50 c008d4f8
[ 3.679531] bf40: c0056be8 c00304a8 c004e484 c1dc6e00 be9cbc08 00000000 00000000 00000014
[ 3.687652] bf60: c1e8bfa4 c1e8bf70 c008dcb4 c008d934 c0029444 00000000 00000000 00000000
[ 3.695772] bf80: 00000000 00000000 00000000 00000000 00000004 c0029444 00000000 c1e8bfa8
[ 3.703894] bfa0: c00292c0 c008dc7c 00000000 00000000 00000003 be9cbc08 00000014 00000000
[ 3.712015] bfc0: 00000000 00000000 00000000 00000004 40195444 00000000 00000000 00000000
[ 3.720139] bfe0: be9cbb90 be9cbb80 4029ddb0 4029d148 60000010 00000003 ffffffff ffffffff
[ 3.728244] Backtrace:
[ 3.730686] [] (rtnl_fill_ifinfo+0x0/0x738) from [] (rtnl_dump_ifinfo+0x90/0xb4)
[ 3.739755] [] (rtnl_dump_ifinfo+0x0/0xb4) from [] (netlink_dump+0x50/0x18c)
[ 3.748479] [] (netlink_dump+0x0/0x18c) from [] (netlink_dump_start+0x150/0x190)
[ 3.757537] r9:00000014 r8:c01ea210 r7:c1e9da00 r6:c1d6c580 r5:c1e9da20
[ 3.764016] r4:c1e9da2c
[ 3.766623] [] (netlink_dump_start+0x0/0x190) from [] (rtnetlink_rcv_msg+0xe4/0x1f8)
[ 3.776026] r9:00000014 r8:00000000 r7:00000002 r6:c1e9f000 r5:c01ea210
[ 3.782506] r4:c1e2e200
[ 3.785114] [] (rtnetlink_rcv_msg+0x0/0x1f8) from [] (netlink_rcv_skb+0x70/0xc4)
[ 3.794170] r8:c1e9da00 r7:c1c2bc00 r6:c01eaf38 r5:c1e2e200 r4:c1e9f000
[ 3.800837] [] (netlink_rcv_skb+0x0/0xc4) from [] (rtnetlink_rcv+0x20/0x2c)
[ 3.809463] r7:c1c2bc00 r6:c1c2bc20 r5:c1c2bc2c r4:c1e9f000
[ 3.815092] [] (rtnetlink_rcv+0x0/0x2c) from [] (netlink_unicast+0x224/0x2d4)
[ 3.823892] r5:c1c2bc2c r4:c1e9f000
[ 3.827447] [] (netlink_unicast+0x0/0x2d4) from [] (netlink_sendmsg+0x2f0/0x2fc)
[ 3.836531] [] (netlink_sendmsg+0x0/0x2fc) from [] (sock_aio_write+0xc4/0xe4)
[ 3.845340] [] (sock_aio_write+0x0/0xe4) from [] (do_sync_write+0x9c/0xd8)
[ 3.853872] r8:00000000 r7:00000000 r6:fffffdee r5:c1dc6e00 r4:c1e8bf78
[ 3.860540] [] (do_sync_write+0x0/0xd8) from [] (vfs_write+0x128/0x134)
[ 3.868820] r7:c1e8bf78 r6:be9cbc08 r5:c1dc6e00 r4:00000014
[ 3.874449] [] (vfs_write+0x0/0x134) from [] (sys_write+0x44/0x70)
[ 3.882298] r8:00000014 r7:00000000 r6:00000000 r5:be9cbc08 r4:c1dc6e00
[ 3.888968] [] (sys_write+0x0/0x70) from [] (ret_fast_syscall+0x0/0x30)
[ 3.897246] r8:c0029444 r7:00000004 r6:00000000 r5:00000000 r4:00000000
[ 3.903909] Code: e5803008 0a00012d e2853c01 e1c091b0 (e1d330b0)
[ 3.910018] ---[ end trace 27d6d8da717cb08a ]---

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.