Skip to content
This repository has been archived by the owner on Jun 14, 2021. It is now read-only.

Commit

Permalink
first working configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita O committed May 27, 2020
1 parent 26a6126 commit 9304b78
Show file tree
Hide file tree
Showing 139 changed files with 16,617 additions and 67,405 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
openwrt-19.07.2/
openwrt-18.06.8/
openwrt/
output/
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "hiburn"]
path = hiburn
url = https://github.com/OpenHisiIpCam/hiburn
[submodule "genimage"]
path = genimage
url = https://github.com/pengutronix/genimage
33 changes: 26 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,28 @@
prepare:
#wget https://github.com/openwrt/openwrt/archive/v19.07.2.zip
git clone https://github.com/openwrt/openwrt.git --depth 1 -b v19.07.2 openwrt-19.07.2
prepare: download openwrt-patch openwrt-prepare genimage-build

download: openwrt submodules

submodules:
git submodule update --init --recursive

openwrt:
git clone https://github.com/openwrt/openwrt.git --depth 1 -b v19.07.3 openwrt

openwrt-patch:
rm -rf ./openwrt/target/linux
cp -r ./openwrt-overlay/* ./openwrt

openwrt-prepare:
cd openwrt; \
./scripts/feeds update -a; \
./scripts/feeds install -a;

genimage-build:
cd genimage; ./autogen.sh; ./configure; make

ubuntu-deps:
sudo apt-get install \
libconfuse-dev


prepare2:
git clone https://github.com/openwrt/openwrt.git --depth 1 -b v18.06.8 openwrt-18.06.8

#./scripts/feeds update -a
#./scripts/feeds install -a
85 changes: 18 additions & 67 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,106 +39,57 @@ For feature requests and contribution read corresponding [section](#feature-requ
If your case is rather different than this project take a look on [BR-HisiCam](https://github.com/OpenHisiIpCam/br-hisicam)
this is our test linux enviroiment for HiSilicon SoCs, suitible for developing any projects from scratch.

## Hardware support

## :camera: Hardware support

**TODO**

### SoCs

| chips | family | kernel |support|
|-------------------------------------------------------|---------------|--------|-------|
| hi3516av100, hi3516dv100 | hi3516av100 |4.9.37 |Yes |
| hi3519v101, hi3516av200 | hi3516av200 |3.18.20 |Yes |
| hi3516cv100, hi3518cv100, hi3518ev100 | hi3516cv100 |3.0.8 |NO |
| hi3516cv200, hi3518ev200, hi3518ev201 | hi3516cv200 |4.9.37 |Yes |
| hi3516cv100, hi3518cv100, hi3518ev100 | hi3516cv100 |3.0.8 |No |
| hi3516cv200, hi3518ev200, hi3518ev201 | hi3516cv200 |4.9.37 |TODO |
| hi3516cv300, hi3516ev100 | hi3516cv300 |3.18.20 |Yes |
| hi3516cv500, hi3516dv300, hi3516av300 | hi3516cv500 |4.9.37 |Yes |
| hi3516ev300, hi3516ev200, hi3516dv200, hi3518ev300 | hi3516ev200 |4.9.37 |Yes |
| hi3519av100 | hi3519av100 |4.9.37 |TODO |
| hi3559av100 | hi3559av100 |4.9.37 |TODO |


### Camera modules

Support for a specific module is determined by combination of chip and cmos (electrical connection is important).
Full support determined by detecting all used gpios and other periphery, that can be done via reverse engineering
(usually it is not difficult as most modules are very similar in terms of schematics).

| module model |support|
|---------------------------------------|-------|
|ruision_rs-h802j-b0_hi3518ev200_f22 |+ |
|xm_ivg-hp203Y-se_hi3516cv300_imx291 |+ |
|xm_ivg-hp201Y-se_hi3516cv300_imx323 |+ |
|jvt_s323h16xf_hi3516cv300_imx323 |+ |
|ruision_rs-h622qm-b0_hi3516cv300_imx323|+ |
|xm_ipg-83he20py-s_hi3516ev100_imx323 |+ |
|xm_ipg-83h50p-b_hi3516av100_imx178 |+ |
|xm_83h40pl-b_hi3516av100_ov4689 |+ |
|ssqvision_on290h16d_hi3516dv100_imx290 |+ |
|xm_ivg-83h80nv-be_hi3516av200_os08a10 |+ |
|jvt_s274h19v-l29_hi3519v101_imx274 |+ |
|jvt_s226h19v-l29_hi3519v101_imx226 |+ |
|xm_ivg-85hf20pya-s_hi3516ev200_imx307 |+ |
|topsee_th38j29_hi3516ev200_imx307 |+ |
|xm_ivg-85hg50pya-s_hi3516ev300_imx335 |+ |
|unknown_facility28_hi3516cv500_imx327 |+ |
|ssqvision_on335h16d_hi3516dv300_imx335 |+ |
|hisilicon_demb_hi3516dv300_imx327 |+ |
Most probably we will support only camera modules with RAM >= 128M.

**TODO**

For detailed modules description check [BR-HisiCam boards catalog](https://github.com/OpenHisiIpCam/br-hisicam/tree/master/br-ext-hisicam/board#boards-catalog).

## Usage

TODO

## Build from scratch
## :hammer: Build from scratch

```console
foo@bar:~$ git clone --recursive https://github.com/OpenHisiIpCam/wrt-hisicam --depth 1
foo@bar:~$ cd wrt-hisicam
foo@bar:~$ make ...
foo@bar:~$ make ubuntu-deps
foo@bar:~$ make prepare
```

## Roadmap
**TODO**

[] SPI Nor flash images for 8MB, 16MB, 32MB.
[] .
[] .
## :clipboard: Roadmap

## Implementation details

TODO
**TODO**

## Feature requests and contribution

TODO

---
## :notebook: Implementation details

## Patching
OpenWrt version 19.07.3.

target linux generic files -> _files
**TODO**

## Helpers

* `ifconfig eth0 192.168.10.X netmask 255.255.255.0 up`
* `route add default gw 192.168.10.1`

## Notes

`WARNING: .../openwrt-19.07.2/bin/targets/hi3516ev200/generic-glibc/packages/Packages to workaround usign SHA-512 bug!`

See:
* https://forum.openwrt.org/t/warning-message-usign-after-build-18-06-5/48419
* https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=e1f588e446c7ceb696b644b37aeab9b3476e2a57
* https://forum.openwrt.org/t/signature-check-failed-after-clean-installation/41945

### Building all packages

```
./scripts/feeds uninstall -a
./scripts/feeds install -a -d m
```
## :open_hands: Feature requests and contribution

* https://forum.archive.openwrt.org/viewtopic.php?id=29619
* https://openwrt.org/docs/guide-user/additional-software/imagebuilder
**TODO**
Loading

0 comments on commit 9304b78

Please sign in to comment.