Skip to content

Instantly share code, notes, and snippets.

@damienwolf07
Last active July 22, 2022 01:20
Show Gist options
  • Save damienwolf07/6c334fbf22c97f57c49641494e1ad9f8 to your computer and use it in GitHub Desktop.
Save damienwolf07/6c334fbf22c97f57c49641494e1ad9f8 to your computer and use it in GitHub Desktop.
Security Camera Boot Up (PTZ, Wiped Root, Chips Removed, Camera Module Detached) https://www.amazon.com/dp/B07TDN9PCQ
console init done
U-Boot 2012.10 (Dec 15 2020 - 14:28:57) for GK7102S GOS-f23-v1.0 (GOKE)
HAL: 20160804
DRAM: 64 MiB
Flash: [XT25F128B] USE 4X mode read and 4X mode write
16 MiB
NAND: [No SPI nand]
SD/MMC: 0
SF: 16 MiB [page:256 Bytes] [sector:64 KiB] [count:256] (XT25F128B)
In: serial
Out: serial
Err: serial
Net: Int PHY
have no userfs
[PROCESS_SEPARATORS] gkupdate all;sf probe;sf read c1000000 0x50000 400000;bootm c1000000
Enable update uboot
MMC: no card present
SF: 16 MiB [page:256 Bytes] [sector:64 KiB] [count:256] (XT25F128B)
put param to memory
mem size (39)
total mem size (64)
bsb size (2)
usr size (0)
the kernel image is zImage or Image
entry = 0xc1000000
## Transferring control to Linux (at address c1000000)...
Starting kernel ...
machid = 3988 r2 = 0xc0000100
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Linux version 3.4.43-gk (root@ubuntu) (gcc version 4.6.1 (crosstool-NG 1.18.0) ) #14 PREEMPT Thu Dec 26 10:35:25 CST 2019
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[ 0.000000] CPU: VIPT aliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: Goke IPC Board
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] AHB: 0x90000000 0xf2000000 -- 0x1000000
[ 0.000000] APB: 0xa0000000 0xf3000000 -- 0x1000000
[ 0.000000] PPM: 0xc0000000 0xc0000000 -- 0x200000
[ 0.000000] BSB: 0xc2900000 0xf5000000 -- 0x200000
[ 0.000000] DSP: 0xc2b00000 0xf6000000 -- 0x14f0000
[ 0.000000] USR: 0xc3ff0000 0xfe000000 -- 0x10000
[ 0.000000] hal version = 20160804
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 9906
[ 0.000000] Kernel command line: console=ttySGK0,115200 noinitrd root=/dev/mtdblock3 rootfstype=squashfs mtdparts=gk_flash:256K(boot),64K(env),2560K(kernel),4096K(rootfs),5312K(config),-(userfs) mem=39M phytype=0
[ 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: 39MB = 39MB total
[ 0.000000] Memory: 34696k/34696k available, 5240k 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 : 0xff600000 - 0xffe00000 ( 8 MB)
[ 0.000000] vmalloc : 0x82800000 - 0xff000000 (1992 MB)
[ 0.000000] lowmem : 0x80000000 - 0x82700000 ( 39 MB)
[ 0.000000] modules : 0x7f000000 - 0x80000000 ( 16 MB)
[ 0.000000] .text : 0x80008000 - 0x80428000 (4224 kB)
[ 0.000000] .init : 0x80428000 - 0x80449000 ( 132 kB)
[ 0.000000] .data : 0x8044a000 - 0x80476640 ( 178 kB)
[ 0.000000] .bss : 0x80476664 - 0x804ac64c ( 216 kB)
[ 0.000000] NR_IRQS:128
[ 0.000000] >> gk init irq vic1...
[ 0.000000] >> gk init irq vic2...
[ 0.000000] gk init vic...
[ 0.000000] mach gk init timer...
[ 0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [ttySGK0] enabled
[ 0.010000] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
[ 0.070000] pid_max: default: 32768 minimum: 301
[ 0.070000] Mount-cache hash table entries: 512
[ 0.080000] CPU: Testing write buffer coherency: ok
[ 0.090000] Setting up static identity map for 0xc054dd88 - 0xc054ddc0
[ 0.100000] NET: Registered protocol family 16
[ 0.110000] init timer...
[ 0.110000] Init HW timer for DSP communication
[ 0.110000] init gpio...
[ 0.120000] ###################################
[ 0.120000] [BOOT VERSION] GK7102S GOS-f23-v1.0 v1.0
[ 0.130000] [NET INT_CLK] Internal PHY clock
[ 0.130000] [GPIO]#############################
[ 0.140000] [GPIO] gpio map get from uboot
[ 0.140000] [GPIO CFG] gpio count = 63
[ 0.150000] [GPIO CFG] intphy count = 0
[ 0.150000] [GPIO CFG] extphy count = 0
[ 0.150000] [GPIO CFG] IR LED CTL (undefined)
[ 0.160000] [GPIO CFG] IR CUT1 (undefined)
[ 0.160000] [GPIO CFG] IR CUT2 (undefined)
[ 0.170000] [GPIO CFG] SENSOR Reset (undefined)
[ 0.170000] [GPIO CFG] PHY Reset (undefined)
[ 0.180000] [GPIO CFG] PHY Speed Led (undefined)
[ 0.180000] [GPIO CFG] SPI0 EN (undefined)
[ 0.190000] [GPIO CFG] SPI1 EN (undefined)
[ 0.190000] [GPIO CFG] USB HOST (undefined)
[ 0.200000] [GPIO CFG] SD Detect (39)
[ 0.200000] [GPIO CFG] SD Power (undefined)
[ 0.210000] [GPIO CFG] SD1 Detect (undefined)
[ 0.210000] [GPIO CFG] SD1 Power (undefined)
[ 0.220000] [GPIO CFG] pwm0 (undefined)
[ 0.220000] [GPIO CFG] pwm1 (undefined)
[ 0.230000] [GPIO CFG] pwm2 (undefined)
[ 0.230000] [GPIO CFG] pwm3 (undefined)
[ 0.240000] [GPIO CFG] pwm4 (undefined)
[ 0.240000] [GPIO CFG] pwm5 (undefined)
[ 0.250000] [GPIO CFG] pwm6 (undefined)
[ 0.250000] [GPIO CFG] pwm7 (undefined)
[ 0.260000] [GPIO]#############################
[ 0.270000] gpiochip_add: registered GPIOs 0 to 62 on device: gk-gpio0
[ 0.270000] [GPIO CFG] gpio_00=SF_CS0
[ 0.280000] [GPIO CFG] gpio_01=SF_CS1
[ 0.280000] [GPIO CFG] gpio_02=INPUT
[ 0.280000] [GPIO CFG] gpio_03=INPUT
[ 0.290000] [GPIO CFG] gpio_04=INPUT
[ 0.290000] [GPIO CFG] gpio_05=OUTPUT_0
[ 0.300000] [GPIO CFG] gpio_06=OUTPUT_0
[ 0.300000] [GPIO CFG] gpio_07=OUTPUT_1
[ 0.310000] [GPIO CFG] gpio_08=OUTPUT_1
[ 0.310000] [GPIO CFG] gpio_09=OUTPUT_1
[ 0.310000] [GPIO CFG] gpio_10=OUTPUT_0
[ 0.320000] [GPIO CFG] gpio_11=OUTPUT_0
[ 0.320000] [GPIO CFG] gpio_12=INPUT
[ 0.330000] [GPIO CFG] gpio_13=INPUT
[ 0.330000] [GPIO CFG] gpio_14=OUTPUT_0
[ 0.330000] [GPIO CFG] gpio_15=OUTPUT_0
[ 0.340000] [GPIO CFG] gpio_16=OUTPUT_0
[ 0.340000] [GPIO CFG] gpio_17=OUTPUT_0
[ 0.350000] [GPIO CFG] gpio_18=OUTPUT_0
[ 0.350000] [GPIO CFG] gpio_19=OUTPUT_0
[ 0.360000] [GPIO CFG] gpio_20=OUTPUT_0
[ 0.360000] [GPIO CFG] gpio_21=OUTPUT_0
[ 0.360000] [GPIO CFG] gpio_22=INPUT
[ 0.370000] [GPIO CFG] gpio_23=INPUT
[ 0.370000] [GPIO CFG] gpio_24=INPUT
[ 0.380000] [GPIO CFG] gpio_25=UART0_RX
[ 0.380000] [GPIO CFG] gpio_26=UART0_TX
[ 0.380000] [GPIO CFG] gpio_27=OUTPUT_1
[ 0.390000] [GPIO CFG] gpio_28=I2C0_DATA
[ 0.390000] [GPIO CFG] gpio_29=I2C0_CLK
[ 0.400000] [GPIO CFG] gpio_30=INPUT
[ 0.400000] [GPIO CFG] gpio_31=INPUT
[ 0.400000] [GPIO CFG] gpio_32=INPUT
[ 0.410000] [GPIO CFG] gpio_33=INPUT
[ 0.410000] [GPIO CFG] gpio_34=INPUT
[ 0.420000] [GPIO CFG] gpio_35=INPUT
[ 0.420000] [GPIO CFG] gpio_36=INPUT
[ 0.420000] [GPIO CFG] gpio_37=OUTPUT_1
[ 0.430000] [GPIO CFG] gpio_38=INPUT
[ 0.430000] [GPIO CFG] gpio_39=SDIO0_CD_N
[ 0.440000] [GPIO CFG] gpio_40=INPUT
[ 0.440000] [GPIO CFG] gpio_41=SDIO0_DATA_3
[ 0.450000] [GPIO CFG] gpio_42=SDIO0_DATA_2
[ 0.450000] [GPIO CFG] gpio_43=SDIO0_CMD
[ 0.450000] [GPIO CFG] gpio_44=SDIO0_CLK
[ 0.460000] [GPIO CFG] gpio_45=SDIO0_DATA_1
[ 0.460000] [GPIO CFG] gpio_46=INPUT
[ 0.470000] [GPIO CFG] gpio_47=SDIO0_DATA_0
[ 0.470000] [GPIO CFG] gpio_48=AO0_MCLK
[ 0.480000] [GPIO CFG] gpio_49=PHY_LINK_LED
[ 0.480000] [GPIO CFG] gpio_50=INPUT
[ 0.480000] [GPIO CFG] gpio_51=INPUT
[ 0.490000] [GPIO CFG] gpio_52=INPUT
[ 0.490000] [GPIO CFG] gpio_53=INPUT
[ 0.500000] [GPIO CFG] gpio_54=INPUT
[ 0.500000] [GPIO CFG] gpio_55=INPUT
[ 0.500000] create proc dir
[ 0.510000] gk register devices 10
[ 0.510000] gk register I2C
[ 0.530000] bio: create slab <bio-0> at 0
[ 0.530000] SCSI subsystem initialized
[ 0.540000] spi spi.0: gk SPI Controller 0 created
[ 0.540000] spi spi.0: master is unqueued, this is deprecated
[ 0.550000] spi spi.1: gk SPI Controller 1 created
[ 0.560000] spi spi.1: master is unqueued, this is deprecated
[ 0.560000] usbcore: registered new interface driver usbfs
[ 0.570000] usbcore: registered new interface driver hub
[ 0.580000] usbcore: registered new device driver usb
[ 0.580000] i2c regbase: 0xf3003000
[ 0.590000] i2c i2c.0: i2c irq:registers 9
[ 0.590000] i2c i2c.0: GK I2C[0] adapter[i2c-0] probed!
[ 0.600000] i2c regbase: 0xf3004000
[ 0.600000] i2c i2c.1: i2c irq:registers 58
[ 0.610000] i2c i2c.1: GK I2C[1] adapter[i2c-1] probed!
[ 0.620000] cfg80211: Calling CRDA to update world regulatory domain
[ 0.620000] FS-Cache: Loaded
[ 0.630000] CacheFiles: Loaded
[ 0.640000] gk-sd gk-sd.0: Slot0 req_size=0x00010000, segs=16, seg_size=0x00010000
[ 0.670000] gk-sd gk-sd.0: GK SD/MMC[0] has 1 slots @ 46000000Hz, [0x09e130b0:0x00000000]
[ 0.680000] NET: Registered protocol family 2
[ 0.680000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.690000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.700000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.710000] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.710000] TCP: reno registered
[ 0.720000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.720000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.730000] NET: Registered protocol family 1
[ 0.740000] RPC: Registered named UNIX socket transport module.
[ 0.740000] RPC: Registered udp transport module.
[ 0.750000] RPC: Registered tcp transport module.
[ 0.750000] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.760000] mdma init...
[ 0.770000] mdma request irq: 54
[ 0.770000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.780000] exFAT: Version 1.2.9
[ 0.790000] NFS: Registering the id_resolver key type
[ 0.790000] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.800000] msgmni has been set to 67
[ 0.810000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 0.820000] io scheduler noop registered
[ 0.820000] io scheduler deadline registered
[ 0.830000] io scheduler cfq registered (default)
[ 0.830000] uart.0: ttySGK0 at MMIO 0xa0005000 (irq = 31) is a gkuart
[ 0.840000] uart.1: ttySGK1 at MMIO 0xa001f000 (irq = 15) is a gkuart
[ 0.850000] uart.2: ttySGK2 at MMIO 0xa001e000 (irq = 27) is a gkuart
[ 0.860000] brd: module loaded
[ 0.870000] loop: module loaded
[ 0.880000] adc initialized (10:11)
[ 0.880000] speed_mod is 1
[ 0.880000] device_ID = 0x000b4018
[ 0.890000] [XT25F128B] USE 1X mode read and 1X mode write
[ 0.890000] =============================
[ 0.900000] sflash regs:0202
[ 0.900000] =============================
[ 0.910000] =============================
[ 0.910000] sflash unlock:0202
[ 0.910000] =============================
[ 0.920000] gk_flash gk_flash.0: XT25F128B (16384 Kbytes)
[ 0.920000] 6 cmdlinepart partitions found on MTD device gk_flash
[ 0.930000] Creating 6 MTD partitions on "gk_flash":
[ 0.940000] 0x000000000000-0x000000040000 : "boot"
[ 0.940000] 0x000000040000-0x000000050000 : "env"
[ 0.950000] 0x000000050000-0x0000002d0000 : "kernel"
[ 0.960000] 0x0000002d0000-0x0000006d0000 : "rootfs"
[ 0.960000] 0x0000006d0000-0x000000c00000 : "config"
[ 0.970000] 0x000000c00000-0x000001000000 : "userfs"
[ 0.980000] speed_mod is 1
[ 0.980000] detect sflash fail
[ 0.990000] slram: not enough parameters.
[ 0.990000] GKETH_init
[ 0.990000] [GKETH_drv_probe] eth_base = 0xf200e000
[ 1.000000] mii id = 0
[ 1.000000] mdiobus_register: PHY[0] whose id 0x00000000
[ 1.010000] goke MII Bus: probed
[ 1.010000] gk-eth gk-eth.0: MAC Address[02:11:22:a3:a0:00].
[ 1.020000] usbcore: registered new interface driver cdc_wdm
[ 1.030000] Initializing USB Mass Storage driver...
[ 1.030000] usbcore: registered new interface driver usb-storage
[ 1.040000] USB Mass Storage support registered.
[ 1.040000] usbcore: registered new interface driver libusual
[ 1.050000] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 1.060000] musb phy Begin initial sequence ...
[ 1.360000] gk musb init end...
[ 1.370000] dma_controller_create_non_init ok
[ 1.370000] musb-hdrc musb-hdrc: MUSB HDRC host driver
[ 1.380000] musb-hdrc musb-hdrc: new USB bus registered, assigned bus number 1
[ 1.390000] hub 1-0:1.0: USB hub found
[ 1.390000] hub 1-0:1.0: 1 port detected
[ 1.400000] musb-hdrc musb-hdrc: USB Host mode controller at f2006000 using DMA, IRQ 26
[ 1.410000] platform add gk musb...
[ 1.410000] mousedev: PS/2 mouse device common for all mice
[ 1.420000] input: GKInput as /devices/virtual/input/input0
[ 1.420000] Protocol NEC[0]
[ 1.430000] ir request irq: 62
[ 1.430000] IR Host Controller probed!
[ 1.430000] gk rtc init...
[ 1.440000] rtc base: 0xf2080000
[ 1.440000] os read tm: t=0
[ 1.440000] gk-rtc gk-rtc: rtc core: registered gk-rtc as rtc0
[ 1.450000] i2c /dev entries driver
[ 1.450000] gk_wdt_v1_00: GK Watchdog Timer, (c) 2014 Goke Microelectronics
[ 1.460000] [gk_wdt_init]: init
[ 1.470000] [gk_wdt_probe]: probe
[ 1.470000] [gk_wdt_probe]: probe mapped wdt_base=f3006000
[ 1.480000] watchdog inactive, reset disabled, irq disabled
[ 1.480000] TCP: cubic registered
[ 1.490000] Initializing XFRM netlink socket
[ 1.490000] NET: Registered protocol family 17
[ 1.500000] NET: Registered protocol family 15
[ 1.500000] lib80211: common routines for IEEE802.11 drivers
[ 1.510000] Registering the dns_resolver key type
[ 1.510000] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 1.520000] os read tm: t=0
[ 1.530000] gk-rtc gk-rtc: setting system clock to 1970-01-01 00:00:00 UTC (0)
[ 1.540000] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 1.550000] Freeing init memory: 132K
Starting logging: OK
[ 2.820000] udevd (54): /proc/54/oom_adj is deprecated, please use /proc/54/oom_score_adj instead.
mkdir: can't create directory '/dev/pts': File exists
mount: mounting devpts on /dev/pts failed: Device or resource busy
Starting mdev...
Initializing random number generator... read-only file system detected...done
Starting network...
sh: can't open 'opt/ipnc/start.sh'
Welcome to Goke Linux
goke login:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment