Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tftp as alternative method and new T10 camera #30

Closed
brainstorm opened this issue Aug 15, 2022 · 3 comments
Closed

tftp as alternative method and new T10 camera #30

brainstorm opened this issue Aug 15, 2022 · 3 comments

Comments

@brainstorm
Copy link
Contributor

brainstorm commented Aug 15, 2022

My MIPS-based camera has a tftp binary and no NFS support on mount, therefore:

On a desktop machine

$ pip install ptftpd
$ ptftpd -p 6969 en0 /Users/rvalls/Downloads

On the embedded device (camera)

# tftp -r /Users/rvalls/Downloads/ipctool-mips32 -g 192.168.1.107 6969

/Users/rvalls/Downlo  46% |**************                 | 61952   0:00:01 ETA
/Users/rvalls/Downlo  97% |****************************** |   126k  0:00:00 ETA
/Users/rvalls/Downlo 100% |*******************************|   129k  0:00:00 ETA
/Users/rvalls/Downlo 100% |*******************************|   129k  0:00:00 ETA

Then the resulting YAML file for this camera with this bootlog looks like this:

/tmp # ./ipctool-mips32 
---
chip:
  vendor: Ingenic
  model: T10
ethernet:
  mac: "40:ffaa:56:32:13:ff"
rom:
  - type: nor
    block: 32K
    partitions:
      - name: boot
        size: 0x40000
        sha1: 3ed97345
      - name: kernel
        size: 0x190000
        sha1: 5e503445
      - name: root
        size: 0x300000
        sha1: c67bd327
      - name: appfs
        size: 0x330000
        path: /system,jffs2,rw
    size: 8M
ram:
  total: 64M
  media: 0M
firmware:
  kernel: "3.10.14 (PREEMPT Tue Oct 30 18:55:41 PDT 2018)"
  toolchain: gcc version 4.7.2 (Ingenic r2.3.3 2016.12) 
  libc: uClibc 0.9.33.2

It didn't really collect any information about the sensor, UBoot version, etc... like the example on the README.md though :/

Thanks @ZigFisher for your assistance over Gitter!

@brainstorm
Copy link
Contributor Author

brainstorm commented Aug 15, 2022

Here are some further hints that you might want to use to improve this tool?:

# cat /proc/cpuinfo
system type..: mango
machine...: Unknown
processor..: 0
cpu model..: Ingenic Xburst V0.0  FPU V0.0
BogoMIPS..: 709.42
wait instruction.: yes
microsecond timers.: no
tlb_entries..: 32
extra interrupt vector.: yes
hardware watchpoint.: yes, count: 1, address/irw mask: [0x0fff]
isa...: mips32r1
ASEs implemented.:
shadow register sets.: 1
kscratch registers.: 7
core...: 0
VCED exceptions..: not available
VCEI exceptions..: not available

Hardware..: isvp
Serial...: 00000000 00000000 00000000 00000000



/system/sensor # ls
jxh62.bin        sensor_jxh62.ko

/system/init # lsmod
audio 72000 0 - Live 0xc0442000 (O)
sensor_jxh62 8466 0 - Live 0xc0421000 (O)
tx_isp 361277 0 - Live 0xc03b1000 (O)
mtnet7601Usta 28130 1 - Live 0xc0264000 (O)
mt7601Usta 760508 1 mtnet7601Usta, Live 0xc0188000 (O)
mtutil7601Usta 47826 2 mtnet7601Usta,mt7601Usta, Live 0xc0084000 (O)

Sensor seems to be supported/opensource: https://github.com/EliasKotlyar/Xiaomi-Dafang-Software/blob/master/drivers/sensors/jxh62/jxh62.c

And WiFi module too: https://github.com/muratdemirtas/MT7601u

@widgetii
Copy link
Member

PRs are always welcome!

@brainstorm
Copy link
Contributor Author

PRs are always welcome!

Sure thing! Done in #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants