12
Return to list Post new posts
Author: constantius

RK3399 linux images

[Copy link]

2

threads

13

posts

127

credits

Registered member

Rank: 2

credits
127
Published in 2018-12-10 16:16:36 | Show all floors
Edited by DataMannen at 2018-12-10 09:18
drivers/media/i2c/soc_camera/rockchip/ov_camera_module.c:421:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
error, forbidden warning: ov_camera_module.c:421



I had the same problem but fixed it by modifying the file: kernel/drivers/media/i2c/soc_camera/rockchip/ov_camera_module.c

I enclosed the contents of the 'if'-statement in the error with { }

Line 421:                if (cam_mod->update_config) {
Line 422:                        ret = ov_camera_module_write_config(cam_mod);
Line 423:                        if (IS_ERR_VALUE(ret))
Line 424:                                goto err;
Line 425:                }

Try that and recompile (make a backup of the original ov_camera_module.c first, just in case)
DataDataData

2

threads

6

posts

54

credits

Registered member

Rank: 2

credits
54
Published in 2018-12-12 18:42:50 | Show all floors
Edited by shrkn at 2018-12-12 18:46

Thank you for your advice. Helped.
But got out another error in the module fusb302.c in the memset function. I also overcame it with the help of compilation directives #pragma gcc pop...push.
Everything was compiled without errors and warnings.

But the image is still not going to. At the end, mkkrnkimg generates error 127.
I think you need to change the version of the cross compiler from 7 to 6 or lower. Or maybe something else?

2

threads

6

posts

54

credits

Registered member

Rank: 2

credits
54
Published in 2018-12-13 02:50:44 | Show all floors
Hi!
The problem was solved by installing the cross-compiler gcc-5-aarch64-linux-gnu and creating a symbolic link to it aarch64-linux-gnu-gcc.
No edits in the source code in this case do not need. By the way, the installation of the cross compiler version below 6 is mentioned in the orange Park 3399 manual, so read more carefully.

2

threads

13

posts

127

credits

Registered member

Rank: 2

credits
127
Published in 2018-12-14 04:32:01 | Show all floors
I'd love to see some support for the RK3399 at https://github.com/orangepi-xunlong/OrangePi_Build
DataDataData

13

threads

93

posts

711

credits

Senior member

Rank: 4

credits
711
Published in 2019-5-17 22:19:15 | Show all floors
There is some now.

0

threads

1

posts

20

credits

Novice

Rank: 1

credits
20
Published in 2019-5-29 02:24:34 | Show all floors
Edited by alleku at 2019-5-29 02:29

Hello, i successed install linux on emmc, but i can't install other programmm becouse root partition is very small

root@localhost:/home/orangepi# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       383M  349M  2.8M 100% /
devtmpfs        1.9G     0  1.9G   0% /dev
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           1.9G  8.1M  1.9G   1% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           1.9G     0  1.9G   0% /sys/fs/cgroup

How to resolve this problem?

13

threads

93

posts

711

credits

Senior member

Rank: 4

credits
711
Published in 2019-5-30 15:04:28 | Show all floors
Strange, I will have to have a look on mine.
12
Return to list Post new posts
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list