Re: 答复: 答复: Chromeos - Single mode for manufacturing test

70 views
Skip to first unread message

Martin Bligh

unread,
Mar 1, 2010, 9:16:15 PM3/1/10
to Elvis Wu(吴欣濂), Alice Chang, Zhurun Zhang, Albert Wong (王重傑), Micah Catlin, Tammo Spalink (司馬泰), Bonyu Wang (汪邦渝), Davec Chen (陳俊誠), chromiu...@chromium.org
can you give a little more detail about what you're trying to do?

Is the script text-based or graphical? Interactive with the user, or just
something to be run in the background?

2010/3/1 Elvis Wu(吴欣濂) <Elvi...@quantacn.com>:
> Yes, we expect having this workground. This is the basic test environment
> requirement for manufacturing test.
>
> And please provide the solution to me, thanks.
>
>
>
> ________________________________
>
> 发件人: Alice Chang [mailto:alice...@google.com]
> 发送时间: Tuesday, March 02, 2010 10:01 AM
> 收件人: Elvis Wu(吴欣濂)
> 抄送: Zhurun Zhang; Albert Wong (王重傑); Micah Catlin; Tammo Spalink (司馬泰);
> Martin Bligh; Bonyu Wang (汪邦渝); Davec Chen (陳俊誠);
> chromiu...@chromium.org
> 主题: Re: 答复: Chromeos - Single mode for manufacturing test
>
>
>
> Is it your plan to have operators run scripts without typing in password to
> login? We should be able to do that without using single user mode. We can
> provide more instructions if this is what you want to do.
>
>
>
> 2010/3/1 Elvis Wu(吴欣濂) <Elvi...@quantacn.com>
>
> Hi Zhurun & Albert,
>
>
>
> Single mode, means user can be a super root role when system boot up.
>
>
>
> Why factory need signal mode? Because we didn't want operators to process
> next step until they press any key, included sudo password.
>
>
>
> You know only super root can initialize some device.
>
>
>
> Sure, by system security considering, mount rootfs will be ready-only.
>
>
>
> If any other good idea, also can reach this goal, I thought it is better.
>
>
>
> Regards,
>
> Elvis
>
> ________________________________
>
> 发件人: Zhurun Zhang [mailto:zhu...@google.com]
>
> 发送时间: Tuesday, March 02, 2010 3:18 AM
> 收件人: Elvis Wu(吴欣濂); Albert Wong (王重傑)
> 抄送: Micah Catlin; Tammo Spalink (司馬泰); Alice Chang; Martin Bligh; Bonyu Wang
> (汪邦渝); Davec Chen (陳俊誠); chromiu...@chromium.org
> 主题: Re: Chromeos - Single mode for manufacturing test
>
>
>
> Hi Elvis,
>
> <Sorry I didn't notice you are waiting for my reply>
>
> So why a single mode is a MUST on your side? I really don't think you
> have to use single mode for your v4l2 driver testing.
>
> If you can explain a little more, maybe we can brain-storm a workaround.
>
>
>
> At the mean time, loop in Albert, who is a linux guru.
>
> Albert,
>
> Any idea of config the ChromeOS into a single session mode. (I guess
> the meaning is only Ctrl-Alt-F1 available.)
>
> Thanks a lot!
>
>
>
> -Zhurun
>
>
>
>
>
> 2010/2/28 Elvis Wu(吴欣濂) <Elvi...@quantacn.com>
>
>
>
> Hi Zhurun,
>
>
>
> Do you find the right person for answering the issue? I still wait for you
> answer.
>
> Single mode is necessary for manufacturing test.
>
>
>
> Regards,
>
> Elvis
>
>
>
> ________________________________
>
> 发件人: Zhurun Zhang [mailto:zhu...@google.com]
> 发送时间: Wednesday, February 24, 2010 2:29 AM
> 收件人: Elvis Wu(吴欣濂)
> 抄送: Micah Catlin; Tammo Spalink (司馬泰); Alice Chang; Martin Bligh
> 主题: Re: 答复: 答复: 答复: 答复: 答复: Make test image
>
>
>
> The question is beyond my knowledge. I would ask chromeos-dev directly.
>
>
>
> In addition, we have a new V4L2 unittest tool now.
>
> You can get it
> from http://git.chromium.org/cgi-bin/gitweb.cgi?p=autotest.git;a=commit;h=c978162a05d7695cd05c62d467446958e3bc5055
>
> It is pretty much a cmdline V4L2 app.
>
> It also demonstrate how we run unittest in ChromeOS.
>
>
>
> Hope it help.
>
>
>
> -Zhurun
>
>
>
> 2010/2/23 Elvis Wu(吴欣濂) <Elvi...@quantacn.com>
>
>
>
> Dear Zhurun,
>
>
>
> I would use single mode for testing mode, how I to do?
>
>
>
> I tried to modify extlinux.conf
>
>
>
> Add "single" at "append" under label "chromeos-hd", like this
>
>
>
> append quiet console=tty2 init=/sbin/init boot=local rootwait root=HDROOT ro
> noresume noswap i915.modeset=1 loglevel=1
>
>
>
> but it did not work. It still boot under x-window
>
>
>
> If let init equals /bin/bash, then kernel panic.
>
>
>
>
>
> Regards,
>
> Elvis
>
>
>
> ________________________________
>
> 发件人: Zhurun Zhang [mailto:zhu...@google.com]
>
> 发送时间: Thursday, February 04, 2010 9:12 AM
> 收件人: Elvis Wu(吴欣濂)
> 抄送: Micah Catlin; Tammo Spalink (司馬泰); Alice Chang; Martin Bligh
> 主题: Re: 答复: 答复: 答复: 答复: Make test image
>
>
>
> sudo mount / -o remount,rw
>
>
>
> 2010/2/3 Elvis Wu(吴欣濂) <Elvi...@quantacn.com>
>
>
>
>
>
> I try the app luvcview, let should be worked on x11 and now I try to let it
> show on linux console.
>
>
>
> But another problem happened, it need some libraries but they are not in
> chrome os and /lib in chrome os is mounted read only.
>
>
>
> How can I add necessary libraries into /lib.
>
>
>
>
>
>
>
>
>
> ________________________________
>
> 发件人: Micah Catlin [mailto:mic...@google.com]
>
> 发送时间: Wednesday, February 03, 2010 5:20 PM
> 收件人: Tammo Spalink (司馬泰)
>
> 抄送: Zhurun Zhang; Elvis Wu(吴欣濂); Alice Chang; Martin Bligh
>
> 主题: Re: 答复: 答复: 答复: Make test image
>
>
>
> CCD = "Charge Coupled Device" and is one type of optical sensor used in
> digital cameras. ChromeOS doesn't care if it's a CCD, or CMOS sensor, or
> whatever -- as long as it has a V4L kernel interface after you plug it in.
> Looks like Elvis' device is a USB module, and the kernel recognizes it.
>
> The message he pasted from the dmesg log suggests that is recognized.
>
> [ 10.677786] uvcvideo: Found UVC 1.00 device CNF9011 (04f2:b175)
>
>
>
> I see some advice on the linux UVC wiki page to suggest how to exercise the
> camera for a brief capture. Can you try something like this? You may have
> to add the ffmpeg program to your test image.
>
>
>
> http://openfacts.berlios.de/index-en.phtml?title=Linux_UVC
>
> FFmpeg
>
> For example, grab with 320x240, 5 frames per second and save as MPEG4:
>
> # ffmpeg -f video4linux2 -s 320x240 -r 5 -i /dev/video0 -f m4v out.m4v
>
> Works good, until the uvcvideo driver sents an incomplete frame (ususally
> happens just after a few seconds)
> (Using Logitech QuickCam Sphere MP (2006 model, 046d:08cc))
>
>
>
>
>
>
>
> On Wed, Feb 3, 2010 at 4:21 PM, Tammo Spalink (司馬泰) <ta...@google.com>
> wrote:
>
> +mbligh,micahc
>
> Hi Folks,
>
> Just chatted with Elvis on the phone and, if I am not misunderstanding, his
> current situation is that his camera is not working. He is trying to track
> down if this is a kernel driver or some other issue. What he was initially
> looking for was not a unit test, but rather advice on what kind of tools
> might be available to help track down what is going wrong.
>
> Else, could you provide the manufacturer and part number of the camera
> device you are working with?
>
> Also, Elvis is now on our IRC channel (using same name), in case any of you
> hang out there and can help him out.
>
> Thanks,
>
> Tammo
>
> ---------
> 2010/2/3 Elvis Wu(吴欣濂) <Elvi...@quantacn.com> wrote
> Also send dmesg to you
>
> [ 10.677786] uvcvideo: Found UVC 1.00 device CNF9011 (04f2:b175)
>
> [ 10.681180] atl1c 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ
> 16
>
> [ 10.681193] atl1c 0000:01:00.0: setting latency timer to 64
>
> [ 10.681265] atl1c 0000:01:00.0: PME# disabled
>
> [ 10.681272] atl1c 0000:01:00.0: PME# disabled
>
> [ 10.693511] usbcore: registered new interface driver uvcvideo
>
> [ 10.693516] USB Video Class driver (v0.1.0)
>
> [ 10.747926] atl1c 0000:01:00.0: version 1.0.0.1-NAPI
>
> [ 10.873591] alloc irq_desc for 28 on node -1
>
> [ 10.873599] alloc kstat_irqs on node -1
>
> [ 10.873626] atl1c 0000:01:00.0: irq 28 for MSI/MSI-X
>
>
>
>
>
> ________________________________
>
> 发件人: Elvis Wu(吴欣濂)
> 发送时间: Wednesday, February 03, 2010 1:38 PM
> 收件人: 'Martin Bligh'
>
> 抄送: Tammo Spalink (司馬泰); Bonyu Wang (汪邦渝); Micah Catlin; Louis Yung-Chieh
> Lo; alice...@google.com
>
> 主题: ZGA - Camear test tool
>
>
>
>
>
> $ lsmod
>
>
>
> Module Size Used by
>
> iwlagn 80156 0
>
> snd_hda_codec_intelhdmi 11200 1
>
> iwlcore 85500 1 iwlagn
>
> snd_hda_codec_realtek 185612 1
>
> mac80211 141080 2
> iwlagn,iwlcore
>
> snd_hda_intel 24108 0
>
> snd_hda_codec 51200 3
> snd_hda_codec_intelhdmi,snd_hda_codec_realtek,snd_hda_intel
>
> snd_hwdep 6108 1
> snd_hda_codec
>
> snd_pcm 57700 2
> snd_hda_intel,snd_hda_codec
>
> snd_timer 16824 1 snd_pcm
>
> snd 43596 7
> snd_hda_codec_intelhdmi,snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
>
> soundcore 5296 1 snd
>
> atl1c 26524 0
>
> uvcvideo 49480 0
>
> cfg80211 99496 3
> iwlagn,iwlcore,mac80211
>
> snd_page_alloc 7540 2
> snd_hda_intel,snd_pcm
>
> acer_wmi 14968 0
>
> videodev 28716 1 uvcvideo
>
> serio_raw 4692 0
>
> wmi 5572 1 acer_wmi
>
> rtc_cmos 9012 0
>
>
>
>
>
> 2010/2/2 Zhurun Zhang <zhu...@google.com>
>
> I don't have a fancy test tool yet.
>
> But simply log into your gmail account and use video chat.
>
> Or you can google some V4L2 sample app.
>
>
>
> (We plan to add a unittest soon. Should have one in Q1 timeline.)
>
>
>
> -Zhurun
>
>
>
>
>
> 2010/2/1 Elvis Wu(吴欣濂) <Elvi...@quantacn.com>
>
> Hi Alice,
>
>
>
> Thanks for your information.
>
>
>
> Please provide me the webcam test tools you team have done for my reference,
> thanks.
>
>
>
> Also the source code will be the best if it is available.
>
>
>
> Regards,
>
> Elvis
>
>
>
> ________________________________
>
> 发件人: Alice Chang [mailto:alice...@google.com]
> 发送时间: Tuesday, February 02, 2010 11:09 AM
> 收件人: Elvis Wu(吴欣濂)
> 抄送: Tammo Spalink (司馬泰); Zhurun Zhang
> 主题: Re: 答复: 答复: Make test image
>
>
>
> +zhurunz
>
>
>
> Elivis,
>
>
>
> According to our video team, V4L2 drivers are already in ChromeOS. We tested
> many V4L2 webcams and are all working.What package are you looking for
> specifically?
>
>
>
>
>
> Thanks,
>
> Alice
>
> On Mon, Feb 1, 2010 at 12:12 AM, Tammo Spalink (司馬泰) <ta...@google.com>
> wrote:
>
> Hi Elivis,
>
> Since I do not know anything about CCD stuff, I will look for some
> other from my team to help. Since they are in MTV, hopefully I can
> get back to you tomorrow.
>
> Tammo
>
> On Mon, Feb 1, 2010 at 15:30, Elvis Wu(吴欣濂) <Elvi...@quantacn.com> wrote:
>>
>> Hi Tammo,
>>
>> Yes, CCD means Camera, now I am trying to use device manage tool under
>> ubuntu to find out it. Sure I need your support if you have any idea.
>>
>> Thanks.
>>
>> Regards,
>> Elvis
>>
>> -----邮件原件-----
>> 发件人: Tammo Spalink (司馬泰) [mailto:ta...@google.com]
>> 发送时间: Monday, February 01, 2010 3:13 PM
>> 收件人: Elvis Wu(吴欣濂)
>> 抄送: Alice Chang
>> 主题: Re: 答复: Make test image
>>
>> Hi Elvis,
>>
>> Sorry I am a bit slow -- glad to see you are making progress.
>>
>> By CCD, do you mean the camera?
>>
>> Tammo
>>
>> 2010/2/1 Elvis Wu(吴欣濂) <Elvi...@quantacn.com>:
>>>
>>> Hi Tammo,
>>>
>>> Below topic, "How to make test image" should be down by command dd
>>> if=/dev/loop0 of=new_rootfs.img bs=1M count=700.
>>>
>>> Now I am studying first test items: CCD.
>>> It seems no drivers of CCD under Chrome
>>> (lib/modules/2.6.31-0-chromeos-intel-menlow/kernel/drivers)
>>> Do you know where can I get it? Or it banded in kernel (another question:
>>> where can I get kernel configuration file?)
>>>
>>>
>>> Regards,
>>> Elvis
>>>
>>> -----邮件原件-----
>>> 发件人: Elvis Wu(吴欣濂)
>>> 发送时间: Monday, February 01, 2010 1:18 PM
>>> 收件人: 'Tammo Spalink (司馬泰)'
>>> 抄送: Alice Chang
>>> 主题: 答复: Make test image
>>>
>>>
>>> Hi Tammo,
>>>
>>> $mount -o loop rootfs.img /home/elvis/work/chromeos.test/rootfs
>>> $df
>>> /dev/loop0 /home/elvis/work/chromeos.test/rootfs
>>>
>>> And I also put some tools into /home/elvis/work/chromeos.test/rootfs,
>>> Then How to make test image?
>>>
>>> Like dd if=/dev/loop0 of=new_rootfs.img bs=1 count=1
>>> seek=1024*1024*700-1?
>>>
>>> Regards,
>>> Elvis
>>>
>>>
>>> -----邮件原件-----
>>> 发件人: Tammo Spalink (司馬泰) [mailto:ta...@google.com]
>>> 发送时间: Friday, January 29, 2010 5:54 PM
>>> 收件人: Elvis Wu(吴欣濂)
>>> 抄送: Alice Chang
>>> 主题: Re: Make test image
>>>
>>> Hi Elvis,
>>>
>>> Its great to hear making the image worked!! If you are mounting the
>>> resulting image, and adding some tools, it should be ok to just
>>> install the image that you modified. That is, use the same
>>> installating process to install the image that you modified. Or am I
>>> misunderstanding?
>>>
>>> Tammo
>>>
>>> 2010/1/29 Elvis Wu(吴欣濂) <Elvi...@quantacn.com>:
>>>>
>>>>
>>>> Hi Tammo,
>>>>
>>>> Good news, I have done making chrome os image and put it into usb disk,
>>>> then copy it into hdd drive.
>>>>
>>>> Now I want to do how to make test image.
>>>>
>>>> Mount rootfs.image as rootfs, then chroot, then put test tool into this
>>>> folder by other terminal window.
>>>>
>>>> Then how to make rootfs.image from rootfs folder?
>>>>
>>>> Regards,
>>>> Elvis
>>>>
>>>> -----邮件原件-----
>>>> 发件人: Elvis Wu(吴欣濂)
>>>> 发送时间: Friday, January 29, 2010 1:31 PM
>>>> 收件人: 'Tammo Spalink (司馬泰)'
>>>> 抄送: Alice Chang
>>>> 主题: 答复: ChromiumOS images
>>>>
>>>>
>>>>
>>>>
>>>> Hi Tammo,
>>>>
>>>> I am trying build image, because the image provided from Quanta RD is
>>>> not valid by the script image_to_usb.sh
>>>>
>>>> The detail is the script is done.
>>>> When I check usb disk under linux, I just only one folder (lost+found)
>>>> and cannot boot machine.
>>>>
>>>> Yes, so I am trying build image. But problem is happened.
>>>>
>>>> When I done "make_chroot", It created the folder "chroot" and then by
>>>> instruction,
>>>> The script "enter_chroot" as user on sudoers list, but it shows
>>>>
>>>> Mounting chroot environment.
>>>> Unmounting chroot environment.
>>>>
>>>> It seems I can not change root, any idea you can support?
>>>>
>>>> Thanks.
>>>>
>>>> Regards,
>>>> Elvis
>>>>
>>>> -----邮件原件-----
>>>> 发件人: Tammo Spalink (司馬泰) [mailto:ta...@google.com]
>>>> 发送时间: Wednesday, January 27, 2010 4:57 PM
>>>> 收件人: Elvis Wu(吴欣濂)
>>>> 抄送: Alice Chang
>>>> 主题: ChromiumOS images
>>>>
>>>> Hi Elvis,
>>>>
>>>> In the long run, the best think would be for you to download and build
>>>> chromiumos yourself, as described here:
>>>>
>>>> http://www.chromium.org/chromium-os/building-chromium-os
>>>>
>>>> Our ongoing builds are available at the following site:
>>>>
>>>> http://build.chromium.org/buildbot/chromiumos/waterfall
>>>>
>>>> where you should be able to folllow the download link from the x86 image
>>>> column.
>>>>
>>>> These images are not configured with a root password. You need to set
>>>> one yourself. Once you have an image -- on a Linux machine, you
>>>> should mount the image using the loopback device. Something like:
>>>>
>>>> # sudo mount -o loop image /mnt
>>>>
>>>> Then you want to chroot into the image, and run the password setting
>>>> script.
>>>>
>>>> # sudo chroot /mnt
>>>> # src/script/set_shared_user_password.sh
>>>>
>>>> After that you should be able to install the image. Once it is
>>>> running, you can get a shell using Ctrl-Alt-F2, and use sudo to
>>>> execute commands as root using the password that you set in the
>>>> previous step.
>>>>
>>>> I have not followed this process (since I build images myself), and
>>>> will only be able to help in more detail once I get back to the office
>>>> next Monday.
>>>>
>>>> Thanks
>>>>
>>>> Tammo
>>>>
>>>
>>
>
>
> --
> Alice Yu-shan Chang
> Partner Technology Manager | Google Inc.
> alice...@google.com | 650.924.1816
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> Alice Yu-shan Chang
> Partner Technology Manager | Google Inc.
> alice...@google.com | 650.924.1816

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages