**** BEGIN LOGGING AT Tue Dec 24 03:00:00 2013 Dec 24 06:14:42 hi all Dec 24 07:27:18 Morning all Dec 24 07:45:22 How Do I Patch /etc/pam.d/sshd Dec 24 09:16:59 why is yocto using the commands python module for invoking commands as opposed to the subprocess module as recommended? Dec 24 10:47:33 hi all i try to load g_serial module in at91sam9x5ek to connect my ubuntu pc through minicom,but it freezed with "initializing modem" message,but i given "getty 115200 /dev/ttyGS0" thn its working fine,is it any entry for initial boot startup Dec 24 11:39:23 RP: it still needs some polishing as git am does not seem to handle --git-dir. :(, but in principle, would you accept a patch like this? http://pastebin.kde.org/ppa0gpsoi Dec 24 12:06:57 the error reporting from bitbake is sometimes poor, and hard to understand what is going on. Dec 24 13:50:24 hello Dec 24 13:51:13 does someone which tool is loading kernel modules and what options can I use? I'm trying to load a wifi module and sometimes he is not loaded before an init script need to use the interface Dec 24 13:51:40 so i would like to insure that the driver is loaded before the init.d script is executed Dec 24 14:50:42 Any body tell me how can I patch /etc/pam.d/sshd file? Dec 24 14:56:27 which recpies ? Dec 24 14:56:36 which recipe ? Dec 24 14:59:14 you can do a bbappend and add your patch for sshd in a specific folder Dec 24 15:00:45 sce: I tried it Dec 24 15:01:13 show me your bbappend Dec 24 15:01:41 its recipe libpam_1.1.6.bb Dec 24 15:01:45 ok Dec 24 15:04:06 FILESEXTRAPATHS_prepend := "${THISDIR}:" SRC_URI += "file://pam_mine.patch" FILESEXTRAPATHS_prepend := "${THISDIR}:" SRC_URI += "file://pam_mine.patch" Dec 24 15:04:40 sce: I copied it two times by mistake Dec 24 15:04:56 FILESEXTRAPATHS_prepend := "${THISDIR}:" SRC_URI += "file://pam_mine.patch" FILESEXTRAPATHS_prepend := "${THISDIR}:" SRC_URI += "file://pam_mine.patch" Dec 24 15:05:16 once is enough Dec 24 15:05:28 yes Dec 24 15:05:39 its only one there in bbappend file Dec 24 15:05:39 and what does your patch contains Dec 24 15:06:31 you can also add FILESEXTRAPATHS_prepend := "${THISDIR}:" SRC_URI += "file://sshd do_install_append () { Dec 24 15:06:32 install -d ${D}${sysconfdir}/ Dec 24 15:06:32 install -m 0755 ${WORKDIR}/sshd${D}${sysconfdir}/ Dec 24 15:06:32 } Dec 24 15:06:36 --- a/rootfs/etc/pam.d/sshd 2013-12-24 03:47:02.780580473 -0600 +++ b/rootfs/etc/pam.d/sshd 2013-12-24 03:52:42.427284265 -0600 @@ -1,6 +1,7 @@ #%PAM-1.0 auth include common-auth +auth optional pam_faildelay.so delay=20000000 account required pam_nologin.so account include common-account password include common-password Dec 24 15:06:45 you can also do i mean Dec 24 15:07:02 do_install_append () { Dec 24 15:07:02 install -d ${D}${sysconfdir}/pam.d Dec 24 15:07:02 install -m 0755 ${WORKDIR}/sshd ${D}${sysconfdir}/pam.d/ Dec 24 15:07:02 } Dec 24 15:07:16 and in your sshd what you need Dec 24 15:07:50 auth optional pam_faildelay.so delay=20000000 this new entry I need Dec 24 15:08:03 I am BCM soc Dec 24 15:08:19 i mean I am working with BCM soc Dec 24 15:10:07 so create a file sshd with this entry Dec 24 15:10:16 and install it as described above Dec 24 15:11:31 ok I am trying Dec 24 15:12:07 sce:install -d ${D}${sysconfdir}/ install -m 0755 ${WORKDIR}/sshd${D}${sysconfdir}/ these two lines are good enough? Dec 24 15:13:44 i dont know but i guess it has to be in /etc/pam.d as i understodd Dec 24 15:13:49 understood Dec 24 15:13:53 i dont know pam.d Dec 24 15:20:59 sce:with above method I don't get my /etc/pam.d/sshd file installed Dec 24 15:21:21 it should work Dec 24 15:21:29 please check this example Dec 24 15:21:40 FILESEXTRAPATHS_prepend := "${THISDIR}:" Dec 24 15:21:40 SRC_URI += "file://modules \ Dec 24 15:21:40 " Dec 24 15:21:40 do_install_append () { Dec 24 15:21:40 install -d ${D}${sysconfdir}/ Dec 24 15:21:41 install -m 0755 ${WORKDIR}/modules ${D}${sysconfdir}/ Dec 24 15:21:43 } Dec 24 15:21:51 this is for another purpose Dec 24 15:27:24 ok Dec 24 18:23:21 Problem while fetching "bitbake bcm2835-bootfiles -c fetch" Dec 24 18:23:51 I have cloned the firmware.git into the source mirror path Dec 24 18:24:39 and now I try to fetch run "bitbake bcm2835-bootfiles -c fetch" without use of internet but its failing now Dec 24 18:31:11 ramose: what kind of failure? Dec 24 18:32:38 sgw_:its says WARNING: Failed to fetch URL git://github.com/raspberrypi/firmware.git;protocol=git;branch=master, attempting MIRRORS if available ERROR: Fetcher failure: Fetch command failed with exit code 128, output: Cloning into bare repository '/home/amit/repo/rpi-build/downloads/git2/github.com.raspberrypi.firmware.git'... Dec 24 18:34:16 This is from Log files : DEBUG: For url git://github.com/raspberrypi/firmware.git;protocol=git;branch=master returning file://source_mirror/sources/git2_github.com.raspberrypi.firmware.git.tar.gz DEBUG: Searching for source_mirror/sources/git2_github.com.raspberrypi.firmware.git.tar.gz in paths: Dec 24 18:34:36 ramose: is your downloads populated (ie did it clone from your local copy), It may be we need to tone down an error Dec 24 18:35:22 I have cloned the firmware repo to source_mirror/sources folder Dec 24 18:36:03 ramose: so does it find the .tar.gz or did you clone the git itself? It might be looking for a bare clone tarball Dec 24 18:36:31 This is my exact path of mirror /home/amit/repo/rpi-build/conf/source_mirror/sources Dec 24 18:36:42 i clone the git itslef Dec 24 18:36:47 *itself Dec 24 18:37:21 *I mean I cloned the git itself Dec 24 18:37:47 its 3GB of repo which I don' want to download again from internet Dec 24 18:38:37 sgw_: how to I provide bare clone tarball now? Dec 24 18:38:37 ramose: as I said I think it's looking for a .tar.gz, so try to put a bare clone tar.gz, you can create on if you enable BB_GENERATE_MIRROR_TARBALL = 1 then re-fetch from the actual upstream, if you can. Dec 24 18:39:35 sgw_ Can I modify recipe in some ways to pick clon itself? Dec 24 18:40:46 ramose: you might also try changing the SRC_URI in your local.conf to point locally: SRC_URI_pn- = Dec 24 18:41:37 ramose: that should work and if oyu set the BB_GENERATE_MIRROR_TARBALL, it should generate the tarball also Dec 24 18:42:03 then you can remove the SRC_URI from local.conf and it should just use the mirror tarball file. Dec 24 18:42:39 sgw_: SRC_URI_pn_bcm2835-bootfiles=firmare,is it right?? Dec 24 18:43:26 ramose: = "" Dec 24 18:44:07 so file://home/amit/repo/rpi-build/conf/source_mirror/sources/firmware.git, with quotes Dec 24 18:44:19 right Dec 24 18:44:20 ramose: if I got the path right Dec 24 18:45:04 and that I have to put in /home/amit/repo/rpi-build/conf/local.conf,right? Dec 24 18:46:25 that's the easiest without editing the recipe Dec 24 18:48:46 ok ,mine cloned repo is of name firmare ,so I have put like SRC_URI_pn_bcm2835-bootfiles="file://home/amit/repo/rpi-build/conf/source_mirror/sources/firmware" in local.conf Dec 24 18:49:08 sure Dec 24 18:49:41 Very Thanks sqw_,I will try and let you know the result. Dec 24 19:06:20 sgw: Sorry but it didn't work out Dec 24 19:06:56 ERROR: Fetcher failure: Unable to find file file://home/amit/repo/rpi-build/conf/source_mirror/sources/firmware. The paths that were searched were: Dec 24 19:07:32 ramose: then I suggest you take the 3G re-download hit and use the BB_GENERATE_MIRROR_TARBALL, sorry I can't help exactly then Dec 24 19:08:53 hmm 3G re-download not sure I have more money left to get that much of internet bandwidth . Dec 24 19:09:11 anyways Thanks sgw_: Dec 24 19:09:33 ramose: Let's try further then, what does it say after the "he paths that were searched were:" line? Dec 24 19:11:17 OK: there are many paths it is showing Dec 24 19:11:57 ramose: can you either pastebin or pm them to me to not flood this channel Dec 24 19:12:19 ramose: do any of those match your /home/... directory path? Dec 24 19:12:33 yes Dec 24 19:12:44 did i flood my path here? Dec 24 19:12:50 ramose: to what level Dec 24 19:13:05 ramose: no, I was refering to you not posting the big list. Dec 24 19:14:03 http://tny.cz/832d06e3 Dec 24 19:14:35 ok I never tried pastebin ,Plz check is it ok? Dec 24 19:16:37 ramose: it works, I just had a thought, by saying file:// we are looking for a file, not a git repo, so please try to change that to git:// and see what happens. Dec 24 19:17:04 ok sgw_ Dec 24 19:18:37 I am trying this in my local.conf file Dec 24 19:19:12 SRC_URI_pn-bcm2835-bootfiles="git://home/amit/repo/rpi-build/conf/source_mirror/sources/firmware" Dec 24 19:19:14 is it fine? Dec 24 19:20:05 let's try it and see Dec 24 19:20:14 ok Dec 24 19:28:26 sgw_: It didn't work out :( Dec 24 19:28:48 ramose: what was the error this time? Dec 24 19:30:38 http://tny.cz/835f9af1 Dec 24 19:31:09 I am double checking in the fetch code what the correct URI format should be for file, hang on. Dec 24 19:31:41 ok: Just a small point Can we go for premirror option here? Dec 24 19:32:02 possibly, might have the same uri formating issue Dec 24 19:35:26 sgw_Is it good idea to call it from recipe? Dec 24 19:36:25 ramose: I think we need to have git:///home to empty the host position, also rename the directory to be firmware.git Dec 24 19:37:17 sorry I didn't get "need to have git:///home to empty the host position" Dec 24 19:37:55 ramose: instead of git://home use git:///home so that the spot where a hostname would be specifed is empty Dec 24 19:38:38 ok triple backslash Dec 24 19:40:20 Are we missing FILESEXTRAPATHS_prepend := "${THISDIR}/ somewhere? Dec 24 19:50:49 sgw_: Did n't get any error this time Dec 24 19:51:05 but how Do I make sure that my fetch went well? Dec 24 19:53:09 ramose: 2 things, if you set the BB_GENERATE_MIRROR_TARBALL, there should be a tar.gz in your downloads dir that we can rename to the correct firmware repo, you will also have a populated WORKDIR in the tmp/work/... (you can use bitbake -e to get the WORKDIR) Dec 24 19:55:33 sgw_:Which one will be my downloads dir ,is it source_mirror one? Dec 24 19:56:39 I am going to set BB_GENERATE_MIRROR_TARBALLS = "1" in local.conf Dec 24 19:57:29 ramose: that tarball might be like git2_home.amit.repo.rpi-build.conf.source_mirror.sources.firmware.git.tar.gz, you would rename that to git2_github.com.raspberrypi.firmware.git.tar.gz in your source_mirror/sources folder Dec 24 19:57:44 ramose: you had not set the BB already? Dec 24 19:58:07 Actully I commented out that Dec 24 19:58:17 It was set earlier Dec 24 19:58:31 ramose: it will show up in your download / DL_DIR and you will need to move it to the source_mirror/source directory Dec 24 20:02:24 sorry sgw: but could n't find that file in home/amit/repo/rpi-build/downloads directory Dec 24 20:02:46 ramose: any *firmware* files in there? Dec 24 20:04:25 n Dec 24 20:04:32 *no Dec 24 20:04:55 actully I removed everyhing for download dir and run the bitbake again Dec 24 20:05:14 but nothing is generated in home/amit/repo/rpi-build/downloads directory Dec 24 20:05:34 is it right download directoy I am looking in to? Dec 24 20:06:07 I assume you have not set DL_DIR to something else, otherwise that is correct Dec 24 20:06:45 I am trying, sorry I could not be more help, let me try one more thing locally here Dec 24 20:07:06 ok No prob sgw: Dec 24 20:07:19 You aleady helped me a lot Dec 24 20:09:24 *already Dec 24 20:19:15 ramose: I am downlaoding the firmware repo to ensure i test the same as you. Dec 24 20:19:23 ramose: 70% Dec 24 20:19:40 sqw: just on point wanted to share with you Dec 24 20:20:35 after bitbake bcm2835-bootfiles -c clean and bitbake bcm2835-bootfiles -c cleansstate Dec 24 20:20:45 i run the bitbake bcm2835-bootfiles -c fetch again Dec 24 20:20:58 nd i can see tow folder in download dir Dec 24 20:21:33 *I can see two folder in download dir Dec 24 20:21:40 git2_.home.amit.repo.rpi-build.conf.source_mirror.sources.firmware.git.tar.gz and git2 Dec 24 20:22:18 I was connected to net while running bitbake bcm2835-bootfiles -c fetch Dec 24 20:23:17 Ok so it looks like it created the tarball now you can rename that to the upsteam name as I suggested above and get rid of the SRC_URI_pn in local.conf , but keep your MIRRORS entry, and it maybe should work! Dec 24 20:23:32 also sgw: You will loose internet bandwidth if download that repo.I don't want you loose your money Dec 24 20:24:06 ramose: I have a monthly cable service, no restrictions like that. Dec 24 20:24:58 ramose: sounds like you have it under control, I am leaving for a few hours, gym, last minute shopping here on the west coast. Dec 24 20:25:09 ok sgw: but I didn't run the bitbake bcm2835-bootfiles -c fetch fully in the fear that i will loose my internet bandwidth Dec 24 20:25:23 so i disconnected in between Dec 24 20:25:31 ok Dec 24 20:25:32 you can also set BB_NO_NETWORK Dec 24 20:25:38 ok Dec 24 20:25:41 but that will prevent other things from downloading Dec 24 20:25:46 ok Dec 24 20:26:44 sqw_ : Have my sincere Thanks !!! Dec 24 20:27:10 You saved a lot of money of mine... Dec 24 20:27:21 Happy X-mas :) **** ENDING LOGGING AT Wed Dec 25 02:59:59 2013