Re: [yocto] [Yocto][Meta-Raspberrypi] Yocto apt sources.list for Raspberry Pi

2018-03-01 Thread Laigui Qin
Hi Alex,


Thanks for the explanation. It makes much more sense for the difference.


BR,
Mike



At 2018-03-01 00:02:36, "Alexander Kanavin"  
wrote:
>On 02/26/2018 04:14 PM, Laigui Qin wrote:
>> I would like to think there is a well maintained Yocto/Poky repository 
>> somewhere in the world like the debian/Raspbian deb source to leverage 
>> (build and maintain my own repo is not my purpose.) Looks like there is 
>> not such repo available...
>
>Please consider that Yocto is not a distribution. It's a toolkit for 
>creating distributions aimed at embedded use cases. While Poky is a 
>reference distro created using Yocto components, it has a fairly limited 
>set of supported hardware, which is mostly various QEMU emulator 
>machines. Almost anyone else will have a different machine, different 
>distribution features, and various other customizations. So any attempt 
>to provide an 'offical' package feed from Yocto itself will just cause 
>confusion and breakage, and will tie up the limited manpower we have 
>even more.
>
>
>Alex
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [Yocto][Meta-Raspberrypi] Yocto apt sources.list for Raspberry Pi

2018-02-26 Thread Laigui Qin
Thanks Ross. got your point on Raspbian package difference. and 
PACKAGE_FEED_URLS attribute is useful for me. -Mike




At 2018-02-26 18:16:48, "Burton, Ross"  wrote:

Running your own feed for personal use is trivial, just point lighttpd or any 
other HTTP server at the deploy/deb directory on your build machine.  If you 
set PACKAGE_FEED_URLS in your local.conf to the URL of the server then future 
images will contain a pre-populated sources.list.


However the only relationship between your Yocto image and Rapsian is that they 
both use Linux and APT. You can't just re-use packages from Raspian (just like 
you wouldn't expect to re-use packages from Fedora), so if that's your goal 
then you should just use Raspian.


Ross


On 25 February 2018 at 13:38, Laigui Qin  wrote:

Hi Everyone,


I am building the GNU Linux with Yocto for Raspberry Pi using meta-raspberrypi. 
Everything is good (with help of google search and yocto manual) until I added 
apt support to the image. As I am a little confused which Repository URL I 
should put in the sources.list, I tried the Raspbian repository. However, when 
I do apt-get upgrade I got following error which is not expected. Any idea on 
this effort?


BR,
Mike


root@raspberrypi-cm3:~# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  base-files cpp diffutils g++ gcc git initscripts libcap2 libgcc1 libgmp10 
libsysfs2 libusb-1.0-0 libwbclient0 netcat ntp procps samba-common usbutils
The following packages will be upgraded:
  busybox ethtool sysfsutils
3 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
Need to get 562 kB of archives.
After this operation, 1114 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://archive.raspbian.org/raspbian wheezy/main armhf busybox armhf 
1:1.20.0-7 [438 kB]
Get:2 http://archive.raspbian.org/raspbian wheezy/main armhf ethtool armhf 
1:3.4.2-1 [98.7 kB]
Get:3 http://archive.raspbian.org/raspbian wheezy/main armhf sysfsutils armhf 
2.1.0+repack-2 [24.5 kB]
Fetched 562 kB in 5s (96.0 kB/s)   
(Reading database ... 16225 files and directories currently installed.)
Preparing to unpack .../busybox_1%3a1.20.0-7_armhf.deb ...
Unpacking busybox (1:1.20.0-7) over (1.24.1-r0) ...
dpkg-deb (subprocess): unable to execute tar (tar): No such file or directory
dpkg-deb: error: subprocess tar returned error exit status 2
dpkg: error processing archive 
/var/cache/apt/archives/ethtool_1%3a3.4.2-1_armhf.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
dpkg-deb (subprocess): unable to execute tar (tar): No such file or directory
dpkg-deb: error: subprocess tar returned error exit status 2
dpkg: error processing archive 
/var/cache/apt/archives/sysfsutils_2.1.0+repack-2_armhf.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/ethtool_1%3a3.4.2-1_armhf.deb
 /var/cache/apt/archives/sysfsutils_2.1.0+repack-2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)




 


--
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto



-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [Yocto][Meta-Raspberrypi] Yocto apt sources.list for Raspberry Pi

2018-02-26 Thread Laigui Qin
Hello Josef,


Thanks for the guide.
I think choice 1 is best solution for my situation based on the context.


BR,
Mike



At 2018-02-26 15:38:40, "Josef Holzmayr"  wrote:
>Hello!
>
>On Sun, Feb 25, 2018 at 09:38:52PM +0800, Laigui Qin wrote:
>> I am building the GNU Linux with Yocto for Raspberry Pi using 
>> meta-raspberrypi. Everything is good (with help of google search and yocto 
>> manual) until I added apt support to the image. As I am a little confused 
>> which Repository URL I should put in the sources.list, I tried the Raspbian 
>> repository. However, when I do apt-get upgrade I got following error which 
>> is not expected. Any idea on this effort?
>
>Unless you are planning to run your own repository server: none. There
>is certainly support for doing that, look for topic on "package feeds"
>in the Yocto documentation.
>
>Your snippet below looks like you are trying to use the raspbian
>repositories, which certainly won't work. You have to understand that
>what you have built is *NOT* a replacement for a raspbian installation
>that will just fill in - it is a whole separated, custom distribution
>and in no way related to any package repository thats out there. So if
>you actually want to use those, then you have also to use their base
>distribution.
>
>If you want to stick with Yocto, your two choices are:
>- just include everything you need in the build. (thats the common one)
>- run a custom package feed server (can be done, but probably you're
>  better off with already existing solutions then.
>
>Greetz Joe
>
>> 
>> root@raspberrypi-cm3:~# sudo apt-get upgrade
>> Reading package lists... Done
>> Building dependency tree   
>> Reading state information... Done
>> Calculating upgrade... Done
>> The following packages have been kept back:
>>   base-files cpp diffutils g++ gcc git initscripts libcap2 libgcc1 libgmp10 
>> libsysfs2 libusb-1.0-0 libwbclient0 netcat ntp procps samba-common usbutils
>> The following packages will be upgraded:
>>   busybox ethtool sysfsutils
>> 3 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
>> Need to get 562 kB of archives.
>> After this operation, 1114 kB of additional disk space will be used.
>> Do you want to continue? [Y/n] 
>> Get:1 http://archive.raspbian.org/raspbian wheezy/main armhf busybox armhf 
>> 1:1.20.0-7 [438 kB]
>> Get:2 http://archive.raspbian.org/raspbian wheezy/main armhf ethtool armhf 
>> 1:3.4.2-1 [98.7 kB]
>> Get:3 http://archive.raspbian.org/raspbian wheezy/main armhf sysfsutils 
>> armhf 2.1.0+repack-2 [24.5 kB]
>> Fetched 562 kB in 5s (96.0 kB/s)   
>> (Reading database ... 16225 files and directories currently installed.)
>> Preparing to unpack .../busybox_1%3a1.20.0-7_armhf.deb ...
>> Unpacking busybox (1:1.20.0-7) over (1.24.1-r0) ...
>> dpkg-deb (subprocess): unable to execute tar (tar): No such file or directory
>> dpkg-deb: error: subprocess tar returned error exit status 2
>> dpkg: error processing archive 
>> /var/cache/apt/archives/ethtool_1%3a3.4.2-1_armhf.deb (--unpack):
>>  subprocess dpkg-deb --control returned error exit status 2
>> dpkg-deb (subprocess): unable to execute tar (tar): No such file or directory
>> dpkg-deb: error: subprocess tar returned error exit status 2
>> dpkg: error processing archive 
>> /var/cache/apt/archives/sysfsutils_2.1.0+repack-2_armhf.deb (--unpack):
>>  subprocess dpkg-deb --control returned error exit status 2
>> Errors were encountered while processing:
>>  /var/cache/apt/archives/ethtool_1%3a3.4.2-1_armhf.deb
>>  /var/cache/apt/archives/sysfsutils_2.1.0+repack-2_armhf.deb
>> E: Sub-process /usr/bin/dpkg returned an error code (1)
>
>-- 
>———
>Josef Holzmayr
>Software Developer Embedded Systems
>
>Tel: +49 8444 9204-48
>Fax: +49 8444 9204-50
>
>R-S-I Elektrotechnik GmbH & Co. KG
>Woelkestrasse 11
>D-85301 Schweitenkirchen
>www.rsi-elektrotechnik.de
>———
>Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
>Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
>Ust-IdNr: DE 128592548 
>
>_
>Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
>Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
>USt-IdNr.: DE 128592548
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] [Yocto][Meta-Raspberrypi] Yocto apt sources.list for Raspberry Pi

2018-02-26 Thread Laigui Qin
Hello Johnny,


Thanks for the reply.
Yes, I know that's not a good idea now.
I would like to think there is a well maintained Yocto/Poky repository 
somewhere in the world like the debian/Raspbian deb source to leverage (build 
and maintain my own repo is not my purpose.) Looks like there is not such repo 
available...
I do notice there is a Yocto subproject called "meta-debian", which try to 
leverage the debian repo. But not sure whether it works well without 
limitation...


BR,
Mike






At 2018-02-26 14:20:15, "Johnny R Cash"  wrote:

Greetings.
If i understand you correctly you configured your Yocto/Poky OS to try to fetch 
updates from Raspbian OS.
You would need to configure Yocto/Poky to update from a Yocto/Poky repository. 
As with using Yocto you probably are defining your own, that would have to be 
your own repository URL.
BR

On 25.02.2018 14:38, Laigui Qin wrote:

Hi Everyone,


I am building the GNU Linux with Yocto for Raspberry Pi using meta-raspberrypi. 
Everything is good (with help of google search and yocto manual) until I added 
apt support to the image. As I am a little confused which Repository URL I 
should put in the sources.list, I tried the Raspbian repository. However, when 
I do apt-get upgrade I got following error which is not expected. Any idea on 
this effort?


BR,
Mike


root@raspberrypi-cm3:~# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  base-files cpp diffutils g++ gcc git initscripts libcap2 libgcc1 libgmp10 
libsysfs2 libusb-1.0-0 libwbclient0 netcat ntp procps samba-common usbutils
The following packages will be upgraded:
  busybox ethtool sysfsutils
3 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
Need to get 562 kB of archives.
After this operation, 1114 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://archive.raspbian.org/raspbian wheezy/main armhf busybox armhf 
1:1.20.0-7 [438 kB]
Get:2 http://archive.raspbian.org/raspbian wheezy/main armhf ethtool armhf 
1:3.4.2-1 [98.7 kB]
Get:3 http://archive.raspbian.org/raspbian wheezy/main armhf sysfsutils armhf 
2.1.0+repack-2 [24.5 kB]
Fetched 562 kB in 5s (96.0 kB/s)   
(Reading database ... 16225 files and directories currently installed.)
Preparing to unpack .../busybox_1%3a1.20.0-7_armhf.deb ...
Unpacking busybox (1:1.20.0-7) over (1.24.1-r0) ...
dpkg-deb (subprocess): unable to execute tar (tar): No such file or directory
dpkg-deb: error: subprocess tar returned error exit status 2
dpkg: error processing archive 
/var/cache/apt/archives/ethtool_1%3a3.4.2-1_armhf.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
dpkg-deb (subprocess): unable to execute tar (tar): No such file or directory
dpkg-deb: error: subprocess tar returned error exit status 2
dpkg: error processing archive 
/var/cache/apt/archives/sysfsutils_2.1.0+repack-2_armhf.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/ethtool_1%3a3.4.2-1_armhf.deb
 /var/cache/apt/archives/sysfsutils_2.1.0+repack-2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)




 






-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] [Yocto][Meta-Raspberrypi] Yocto apt sources.list for Raspberry Pi

2018-02-25 Thread Laigui Qin
Hi Everyone,


I am building the GNU Linux with Yocto for Raspberry Pi using meta-raspberrypi. 
Everything is good (with help of google search and yocto manual) until I added 
apt support to the image. As I am a little confused which Repository URL I 
should put in the sources.list, I tried the Raspbian repository. However, when 
I do apt-get upgrade I got following error which is not expected. Any idea on 
this effort?


BR,
Mike


root@raspberrypi-cm3:~# sudo apt-get upgrade
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  base-files cpp diffutils g++ gcc git initscripts libcap2 libgcc1 libgmp10 
libsysfs2 libusb-1.0-0 libwbclient0 netcat ntp procps samba-common usbutils
The following packages will be upgraded:
  busybox ethtool sysfsutils
3 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.
Need to get 562 kB of archives.
After this operation, 1114 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://archive.raspbian.org/raspbian wheezy/main armhf busybox armhf 
1:1.20.0-7 [438 kB]
Get:2 http://archive.raspbian.org/raspbian wheezy/main armhf ethtool armhf 
1:3.4.2-1 [98.7 kB]
Get:3 http://archive.raspbian.org/raspbian wheezy/main armhf sysfsutils armhf 
2.1.0+repack-2 [24.5 kB]
Fetched 562 kB in 5s (96.0 kB/s)   
(Reading database ... 16225 files and directories currently installed.)
Preparing to unpack .../busybox_1%3a1.20.0-7_armhf.deb ...
Unpacking busybox (1:1.20.0-7) over (1.24.1-r0) ...
dpkg-deb (subprocess): unable to execute tar (tar): No such file or directory
dpkg-deb: error: subprocess tar returned error exit status 2
dpkg: error processing archive 
/var/cache/apt/archives/ethtool_1%3a3.4.2-1_armhf.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
dpkg-deb (subprocess): unable to execute tar (tar): No such file or directory
dpkg-deb: error: subprocess tar returned error exit status 2
dpkg: error processing archive 
/var/cache/apt/archives/sysfsutils_2.1.0+repack-2_armhf.deb (--unpack):
 subprocess dpkg-deb --control returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/ethtool_1%3a3.4.2-1_armhf.deb
 /var/cache/apt/archives/sysfsutils_2.1.0+repack-2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto