10 Commits

Author SHA1 Message Date
Andreas Müller
19f40f2e85 Card write all supported machines: Show progress
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
2022-05-06 10:28:37 +02:00
Andreas Müller
40e25d1bbf card-helpers.inc: avoid incorrect size calculations
This popped up when setting BITBAKE_TMPDIR

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
2022-03-29 14:09:53 +02:00
Andreas Müller
afec76bcbf card-helpers.inc: Don't ask bitbake for BITBAKE_TMPDIR if BITBAKE_TMPDIR is set
We need this when running bitbake in container

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
2022-03-29 10:48:59 +02:00
Andreas Müller
140f8964b5 card-helpers.inc: rename _TMPDIR to BITBAKE_TMPDIR
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
2022-03-29 09:45:45 +02:00
Andreas Müller
9d2b8fac1c card-helpers.inc: Show more proper sizes
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
2022-03-29 09:41:13 +02:00
Andreas Müller
e195b4c240 packagegroup-gui-dev: add ruby
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
(cherry picked from commit 0d1b428b13)
2021-05-13 16:04:43 +02:00
Andreas Müller
71e3a79ae8 raspi-image-test-and-setup: remove some lines unused or not recommended
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
(cherry picked from commit 13972e1d85)
2021-05-04 23:16:49 +02:00
Andreas Müller
8f0507a33b udev-rules-udisks-hide-bootpart: Follow boot partition rename in meta-raspi-light
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
(cherry picked from commit e10a176f88)
2021-05-04 23:16:34 +02:00
Andreas Müller
90e296a3f7 card-helpers: Add hint for tired users running non matching card-write scripts
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
(cherry picked from commit 715ae745b6)
2021-05-04 23:14:42 +02:00
Andreas Müller
91e5d6c313 Get chromium-x11 back into our images after meta-browser layer split
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
(cherry picked from commit af1911a492)
2021-05-04 23:14:25 +02:00
10 changed files with 28 additions and 19 deletions

View File

@@ -7,8 +7,6 @@ Setup new image:
* copy this file to /home/morona / open with gedit / setup colour theme
As root:
* systemctl disable systemd-networkd-wait-online.service
* TODO systemctl disable brcm43438
* systemctl disable serial-getty@ttyS0
* systemctl disable serial-getty@ttyAMA0
* create /home/<user>/.asoundrc with (soundcards can be sndrpihifiberry/audioinjectorpi...)

View File

@@ -34,6 +34,8 @@ RDEPENDS_${PN} = " \
chrpath \
nodejs nodejs-npm nodejs-systemtap \
\
ruby ruby-dev \
\
libeigen-dev \
\
wireshark \
@@ -42,7 +44,7 @@ RDEPENDS_${PN} = " \
\
pulseview qtiohelper \
\
${@bb.utils.contains('BBFILE_COLLECTIONS', 'browser-layer', 'chromium-x11', '', d)} \
${@bb.utils.contains_any('BBFILE_COLLECTIONS', 'browser-layer chromium-browser-layer', 'chromium-x11', '', d)} \
${@bb.utils.contains('BBFILE_COLLECTIONS', 'meta-microcontroller', 'meta-microcontroller-world', '', d)} \
"

View File

@@ -37,7 +37,7 @@ RDEPENDS_${PN} = " \
\
${MACHINE_SPECIFICS_FULL} \
\
${@bb.utils.contains('BBFILE_COLLECTIONS', 'browser-layer', 'chromium-x11', '', d)} \
${@bb.utils.contains_any('BBFILE_COLLECTIONS', 'browser-layer chromium-browser-layer', 'chromium-x11', '', d)} \
\
${@bb.utils.contains('BBFILE_COLLECTIONS', 'meta-retro', 'mame dosbox dosbox-x cage cass80 z80 vice stella opentyrian d1x-rebirth', '', d)} \
\

View File

@@ -13,7 +13,7 @@ IMAGE_INSTALL += " \
packagegroup-gui-musicians \
\
${@bb.utils.contains('BBFILE_COLLECTIONS', 'office-layer', 'libreoffice', '', d)} \
${@bb.utils.contains('BBFILE_COLLECTIONS', 'browser-layer', 'chromium-x11', '', d)} \
${@bb.utils.contains_any('BBFILE_COLLECTIONS', 'browser-layer chromium-browser-layer', 'chromium-x11', '', d)} \
\
jack-dev \
lv2-dev \

View File

@@ -8,5 +8,5 @@ IMAGE_INSTALL += " \
packagegroup-gui-musicians \
\
${@bb.utils.contains('BBFILE_COLLECTIONS', 'office-layer', 'libreoffice', '', d)} \
${@bb.utils.contains('BBFILE_COLLECTIONS', 'browser-layer', 'chromium-x11', '', d)} \
${@bb.utils.contains_any('BBFILE_COLLECTIONS', 'browser-layer chromium-browser-layer', 'chromium-x11', '', d)} \
"

View File

@@ -12,7 +12,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
# Feel free to add more...
BOOTPARTSPEC = "boot,vfat BOOT,vfat"
BOOTPARTSPEC_rpi = "raspberrypi,vfat"
BOOTPARTSPEC_rpi = "rpi*,vfat"
do_install () {
install -d ${D}${nonarch_base_libdir}/udev/rules.d

View File

@@ -83,7 +83,8 @@ SelectCardDevice() {
ErrorOut 'Cancel selected at SelectCardDevice().'
fi
DevicePath=${DevicePathArr[$menuitem]}
DeviceSize=`lsblk --nodeps --raw --noheadings --output SIZE --bytes $dev`
DeviceSize=`lsblk --nodeps --raw --noheadings --output SIZE --bytes $DevicePath`
unset menuitem
unset menuitems
fi
@@ -98,16 +99,24 @@ SelectCardDevice() {
# DeployFileDir: Path of the file selected
SelectDeployedFile() {
if [ -z "$DeployedFile" ]; then
GetBitbakeEnvVar "TMPDIR"
_TMPDIR="$BitbakeEnvVar"
if [ -z "$BITBAKE_TMPDIR" ]; then
GetBitbakeEnvVar "TMPDIR"
BITBAKE_TMPDIR="$BitbakeEnvVar"
fi
# bitbake environment found?
if [ -z "$_TMPDIR" ]; then
if [ -z "$BITBAKE_TMPDIR" ]; then
ErrorOut "Bitbake environment variable TMPDIR not found!"
fi
for FilePath in `find ${_TMPDIR}/deploy/images/${Machine} $FindString | sort` ; do
DeployPath=${BITBAKE_TMPDIR}/deploy/images/${Machine}
if [ ! -e ${DeployPath} ]; then
echo "${style_yellow}${style_bold}DeployPath: ${DeployPath}${style_normal}"
ErrorOut "Deploy path for ${Machine} not found! Wrong script started?"
fi
for FilePath in `find ${DeployPath} $FindString | sort` ; do
iCount=`expr $iCount + 1`
RootFileNameArr[${iCount}]="$FilePath"
FileSize=`du -Dh "$FilePath" | cut -f1`
FileSize=`du -Dbh "$FilePath" | cut -f1`
menuitems+=( "$iCount" "`basename $FilePath` / size: $FileSize" )
done

View File

@@ -20,11 +20,11 @@ RootCardWriteCallback() {
# write
StartMessage="\nWrite $DeployedFile to $DevicePath..."
if echo $DeployedFile | grep -q '.wic.gz'; then
EvalExAuto "gunzip -c $DeployedFile | dd of=$DevicePath oflag=nocache bs=1024K" "$StartMessage"
EvalExAuto "gunzip -c $DeployedFile | dd of=$DevicePath status=progress oflag=nocache bs=1024K" "$StartMessage"
elif echo $DeployedFile | grep -q '.wic.xz'; then
EvalExAuto "tar -x -f $DeployedFile --to-stdout | dd of=$DevicePath oflag=nocache bs=1024K" "$StartMessage"
EvalExAuto "tar -x -f $DeployedFile --to-stdout | dd of=$DevicePath status=progress oflag=nocache bs=1024K" "$StartMessage"
else
EvalExAuto "dd of=$DevicePath oflag=nocache if=$DeployedFile bs=1024K" "$StartMessage"
EvalExAuto "dd of=$DevicePath status=progress oflag=nocache if=$DeployedFile bs=1024K" "$StartMessage"
fi
# resize I
EvalExAuto "parted -s $DevicePath -- resizepart 2 -0" "\nResize I ${DevicePath}2..."

View File

@@ -20,9 +20,9 @@ RootCardWriteCallback() {
# write
StartMessage="\nWrite $DeployedFile to $DevicePath..."
if echo $DeployedFile | grep -q '.wic.gz'; then
EvalExAuto "gunzip -c $DeployedFile | dd of=$DevicePath oflag=nocache bs=1024K" "$StartMessage"
EvalExAuto "gunzip -c $DeployedFile | dd of=$DevicePath status=progress oflag=nocache bs=1024K" "$StartMessage"
else
EvalExAuto "dd of=$DevicePath oflag=nocache if=$DeployedFile bs=1024K" "$StartMessage"
EvalExAuto "dd of=$DevicePath status=progress oflag=nocache if=$DeployedFile bs=1024K" "$StartMessage"
fi
# resize I
EvalExAuto "parted -s $DevicePath -- resizepart 2 -0" "\nResize I ${DevicePath}2..."

View File

@@ -18,7 +18,7 @@ RootCardWriteCallback() {
# evt. write partition table
CheckPartitionTable "$DevicePath"
# write
EvalExAuto "dd of=$DevicePath oflag=nocache if=$DeployedFile bs=1024K" "\nWrite $DeployedFile to $DevicePath..."
EvalExAuto "dd of=$DevicePath status=progress oflag=nocache if=$DeployedFile bs=1024K" "\nWrite $DeployedFile to $DevicePath..."
# resize I
EvalExAuto "parted -s $DevicePath -- resizepart 2 -0" "\nResize I ${DevicePath}2..."
# resize II