Kernel Boot Parameters

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
The_Raven
Posts: 18
Joined: Sat Aug 12, 2017 12:51 pm

Kernel Boot Parameters

Post by The_Raven »

Hi all

Short version:
Can you tell me please how to activate "Kernel Boot Parameters" on a Asus Tinker Board?
On a RAPI i need to edit /boot/cmdline.txt, but this does not work an a TinkerBoard.

Long version:
I try to realize a Webcam-Project. One or tow USB-Cams on a RAPI or TB. The problem is, that the RAPI seems to have a very bad USB speed.
So i have sporadically artefacts and random failures in the picture. This triggers the "motion" and generates an event.
Because of this problem, i tried the same on a TB. But i don't know why, the cam shows only artefacts and a very bad picture (not usable).
I think i need to activate the "quirks". The problem is, that the module "uvcvideo" is built in the kernel. So setting module-parameters with modprobe is not possible. I need to set "uvcvideo.quirks=128" by a kernel parameter. Maybe this solves my problem with the bad picture (i hope).

Thx and greetings.
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Kernel Boot Parameters

Post by Fourdee »

The_Raven wrote:Hi all

Short version:
Can you tell me please how to activate "Kernel Boot Parameters" on a Asus Tinker Board?
On a RAPI i need to edit /boot/cmdline.txt, but this does not work an a TinkerBoard.
Hi,

The only boot options for ASUS TB are in:

Code: Select all

/boot/hw_intf.conf
They should accept kernel command line options, however, untested.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
The_Raven
Posts: 18
Joined: Sat Aug 12, 2017 12:51 pm

Re: Kernel Boot Parameters

Post by The_Raven »

Hi
Thx for the answer, but this does not work.
I found the solution:

Code: Select all

nano /boot/extlinux/extlinux.conf
But this does not solve my problem with the webcams. The picture is still horrible! :cry:

Maybe any ideas about debugging this issue? :?:
User avatar
Fourdee
Site Admin
Posts: 2782
Joined: Tue Feb 06, 2007 1:36 pm

Re: Kernel Boot Parameters

Post by Fourdee »

The_Raven wrote:Hi
Thx for the answer, but this does not work.
I found the solution:

Code: Select all

nano /boot/extlinux/extlinux.conf
But this does not solve my problem with the webcams. The picture is still horrible! :cry:

Maybe any ideas about debugging this issue? :?:
Check the log files for the program your using (eg: Motion), and, USB for any errors:

Code: Select all

dmesg | grep usb
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
The_Raven
Posts: 18
Joined: Sat Aug 12, 2017 12:51 pm

Re: Kernel Boot Parameters

Post by The_Raven »

Absolutely no usefull informations. :cry:

Code: Select all

------------------------
cap.driver: "uvcvideo"
cap.card: "HP Webcam [2 MP Macro]"
cap.bus_info: "usb-ff540000.usb-1.2"
cap.capabilities=0x84200001
------------------------
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_get_capability: - VIDEO_CAPTURE
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_get_capability: - STREAMING
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_select_input: name = "Camera 1", type 0x00000002, status 00000000
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_select_input: - CAMERA
[1:ml1] [WRN] [VID] [Aug 18 16:49:56] v4l2_select_input: Device doesn't support VIDIOC_G_STD
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_do_set_pix_format: Testing palette YUYV (1024x768)
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_do_set_pix_format: Using palette YUYV (1024x768) bytesperlines 2048 sizeimage 1572864 colorspace 00000008
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_scan_controls: found control 0x00980900, "Brightness", range -64,64 
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_scan_controls: 	"Brightness", default -8193, current -51
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_scan_controls: found control 0x00980901, "Contrast", range 0,64 
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_scan_controls: 	"Contrast", default 57343, current 33
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_scan_controls: found control 0x00980902, "Saturation", range 0,128 
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_scan_controls: 	"Saturation", default 57343, current 62
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_scan_controls: found control 0x00980903, "Hue", range -40,40 
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_scan_controls: 	"Hue", default -8193, current 0
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_scan_controls: found control 0x00980918, "Power Line Frequency", range 0,2 
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_scan_controls: 	"Power Line Frequency", default 2, current 2
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_scan_controls: found control 0x00980910, "Gamma", range 72,500 
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_scan_controls: 	"Gamma", default 57343, current 100
[1:ml1] [DBG] [VID] [Aug 18 16:49:56] v4l2_set_mmap: mmap information: frames=4
[1:ml1] [DBG] [VID] [Aug 18 16:49:56] v4l2_set_mmap: 0 length=1572864 Address (b0b80000)
[1:ml1] [DBG] [VID] [Aug 18 16:49:56] v4l2_set_mmap: 1 length=1572864 Address (b0a00000)
[1:ml1] [DBG] [VID] [Aug 18 16:49:56] v4l2_set_mmap: 2 length=1572864 Address (b0880000)
[1:ml1] [DBG] [VID] [Aug 18 16:49:56] v4l2_set_mmap: 3 length=1572864 Address (b0700000)
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] vid_v4lx_start: Using V4L2
[1:ml1] [NTC] [ALL] [Aug 18 16:49:56] image_ring_resize: Resizing pre_capture buffer to 1 items
[1:ml1] [INF] [ALL] [Aug 18 16:49:56] motion_init: Maskfile "/etc/motion/cam1-mask.pgm" loaded.
[1:ml1] [NTC] [STR] [Aug 18 16:49:56] http_bindsock: listening on any IPv4 address port 8081
[1:ml1] [NTC] [ALL] [Aug 18 16:49:56] motion_init: Started motion-stream server on port 8081 (auth Disabled)
[1:ml1] [NTC] [ALL] [Aug 18 16:49:56] image_ring_resize: Resizing pre_capture buffer to 7 items
[1:ml1] [NTC] [VID] [Aug 18 16:49:56] v4l2_set_control: setting control "Brightness" to -51 (ret 0 ) 
[1:ml1] [DBG] [VID] [Aug 18 16:49:56] v4l2_next: 1) vid_source->pframe -1
[0:motion] [ERR] [ALL] [Aug 18 16:50:26] main: Thread 1 - Watchdog timeout, trying to do a graceful restart
[0:motion] [ERR] [ALL] [Aug 18 16:51:26] main: Thread 1 - Watchdog timeout, did NOT restart graceful,killing it!
[0:motion] [ERR] [ALL] [Aug 18 16:51:28] main: cleaning Thread 1
[0:motion] [NTC] [STR] [Aug 18 16:51:28] stream_stop: Closing motion-stream listen socket & active motion-stream sockets
[0:motion] [NTC] [STR] [Aug 18 16:51:28] stream_stop: Closed motion-stream listen socket & active motion-stream sockets
[0:motion] [INF] [ALL] [Aug 18 16:51:28] motion_cleanup: Calling vid_close() from motion_cleanup
[0:motion] [NTC] [VID] [Aug 18 16:51:28] vid_close: Closing video device /dev/video0
[0:motion] [NTC] [ALL] [Aug 18 16:51:29] main: Motion thread 1 restart
[1:ml1] [NTC] [ALL] [Aug 18 16:51:29] motion_init: Camera 1 started: motion detection Enabled
[1:ml1] [NTC] [VID] [Aug 18 16:51:29] vid_v4lx_start: Using videodevice /dev/video0 and input -1
[1:ml1] [NTC] [VID] [Aug 18 16:51:29] v4l2_get_capability: 
dmesg shows this:

Code: Select all

[  546.586316] uvcvideo: Failed to resubmit video URB (-1).
[ 4798.038734] uvcvideo: Failed to resubmit video URB (-1).
[ 6416.963986] uvcvideo: Failed to resubmit video URB (-1).
[ 9125.676965] uvcvideo: Failed to resubmit video URB (-1).
[10230.335857] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[10235.335866] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[10249.545869] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[10254.545869] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[10259.645849] uvcvideo: Failed to set UVC probe control : -110 (exp. 26).
[11599.103288] uvcvideo: Failed to resubmit video URB (-1).
Pictures looks like attachment. -> horrible! :roll:
Attachments
pic.png
Post Reply