Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
19f40f2e85 | ||
|
|
40e25d1bbf | ||
|
|
afec76bcbf | ||
|
|
140f8964b5 | ||
|
|
9d2b8fac1c | ||
|
|
e195b4c240 | ||
|
|
71e3a79ae8 | ||
|
|
8f0507a33b | ||
|
|
90e296a3f7 | ||
|
|
91e5d6c313 |
@@ -7,8 +7,6 @@ Setup new image:
|
|||||||
* copy this file to /home/morona / open with gedit / setup colour theme
|
* copy this file to /home/morona / open with gedit / setup colour theme
|
||||||
|
|
||||||
As root:
|
As root:
|
||||||
* systemctl disable systemd-networkd-wait-online.service
|
|
||||||
* TODO systemctl disable brcm43438
|
|
||||||
* systemctl disable serial-getty@ttyS0
|
* systemctl disable serial-getty@ttyS0
|
||||||
* systemctl disable serial-getty@ttyAMA0
|
* systemctl disable serial-getty@ttyAMA0
|
||||||
* create /home/<user>/.asoundrc with (soundcards can be sndrpihifiberry/audioinjectorpi...)
|
* create /home/<user>/.asoundrc with (soundcards can be sndrpihifiberry/audioinjectorpi...)
|
||||||
|
|||||||
@@ -34,6 +34,8 @@ RDEPENDS_${PN} = " \
|
|||||||
chrpath \
|
chrpath \
|
||||||
nodejs nodejs-npm nodejs-systemtap \
|
nodejs nodejs-npm nodejs-systemtap \
|
||||||
\
|
\
|
||||||
|
ruby ruby-dev \
|
||||||
|
\
|
||||||
libeigen-dev \
|
libeigen-dev \
|
||||||
\
|
\
|
||||||
wireshark \
|
wireshark \
|
||||||
@@ -42,7 +44,7 @@ RDEPENDS_${PN} = " \
|
|||||||
\
|
\
|
||||||
pulseview qtiohelper \
|
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)} \
|
${@bb.utils.contains('BBFILE_COLLECTIONS', 'meta-microcontroller', 'meta-microcontroller-world', '', d)} \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ RDEPENDS_${PN} = " \
|
|||||||
\
|
\
|
||||||
${MACHINE_SPECIFICS_FULL} \
|
${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)} \
|
${@bb.utils.contains('BBFILE_COLLECTIONS', 'meta-retro', 'mame dosbox dosbox-x cage cass80 z80 vice stella opentyrian d1x-rebirth', '', d)} \
|
||||||
\
|
\
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ IMAGE_INSTALL += " \
|
|||||||
packagegroup-gui-musicians \
|
packagegroup-gui-musicians \
|
||||||
\
|
\
|
||||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'office-layer', 'libreoffice', '', d)} \
|
${@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 \
|
jack-dev \
|
||||||
lv2-dev \
|
lv2-dev \
|
||||||
|
|||||||
@@ -8,5 +8,5 @@ IMAGE_INSTALL += " \
|
|||||||
packagegroup-gui-musicians \
|
packagegroup-gui-musicians \
|
||||||
\
|
\
|
||||||
${@bb.utils.contains('BBFILE_COLLECTIONS', 'office-layer', 'libreoffice', '', d)} \
|
${@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)} \
|
||||||
"
|
"
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|||||||
# Feel free to add more...
|
# Feel free to add more...
|
||||||
|
|
||||||
BOOTPARTSPEC = "boot,vfat BOOT,vfat"
|
BOOTPARTSPEC = "boot,vfat BOOT,vfat"
|
||||||
BOOTPARTSPEC_rpi = "raspberrypi,vfat"
|
BOOTPARTSPEC_rpi = "rpi*,vfat"
|
||||||
|
|
||||||
do_install () {
|
do_install () {
|
||||||
install -d ${D}${nonarch_base_libdir}/udev/rules.d
|
install -d ${D}${nonarch_base_libdir}/udev/rules.d
|
||||||
|
|||||||
@@ -83,7 +83,8 @@ SelectCardDevice() {
|
|||||||
ErrorOut 'Cancel selected at SelectCardDevice().'
|
ErrorOut 'Cancel selected at SelectCardDevice().'
|
||||||
fi
|
fi
|
||||||
DevicePath=${DevicePathArr[$menuitem]}
|
DevicePath=${DevicePathArr[$menuitem]}
|
||||||
DeviceSize=`lsblk --nodeps --raw --noheadings --output SIZE --bytes $dev`
|
DeviceSize=`lsblk --nodeps --raw --noheadings --output SIZE --bytes $DevicePath`
|
||||||
|
|
||||||
unset menuitem
|
unset menuitem
|
||||||
unset menuitems
|
unset menuitems
|
||||||
fi
|
fi
|
||||||
@@ -98,16 +99,24 @@ SelectCardDevice() {
|
|||||||
# DeployFileDir: Path of the file selected
|
# DeployFileDir: Path of the file selected
|
||||||
SelectDeployedFile() {
|
SelectDeployedFile() {
|
||||||
if [ -z "$DeployedFile" ]; then
|
if [ -z "$DeployedFile" ]; then
|
||||||
GetBitbakeEnvVar "TMPDIR"
|
if [ -z "$BITBAKE_TMPDIR" ]; then
|
||||||
_TMPDIR="$BitbakeEnvVar"
|
GetBitbakeEnvVar "TMPDIR"
|
||||||
|
BITBAKE_TMPDIR="$BitbakeEnvVar"
|
||||||
|
fi
|
||||||
# bitbake environment found?
|
# bitbake environment found?
|
||||||
if [ -z "$_TMPDIR" ]; then
|
if [ -z "$BITBAKE_TMPDIR" ]; then
|
||||||
ErrorOut "Bitbake environment variable TMPDIR not found!"
|
ErrorOut "Bitbake environment variable TMPDIR not found!"
|
||||||
fi
|
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`
|
iCount=`expr $iCount + 1`
|
||||||
RootFileNameArr[${iCount}]="$FilePath"
|
RootFileNameArr[${iCount}]="$FilePath"
|
||||||
FileSize=`du -Dh "$FilePath" | cut -f1`
|
FileSize=`du -Dbh "$FilePath" | cut -f1`
|
||||||
menuitems+=( "$iCount" "`basename $FilePath` / size: $FileSize" )
|
menuitems+=( "$iCount" "`basename $FilePath` / size: $FileSize" )
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
@@ -20,11 +20,11 @@ RootCardWriteCallback() {
|
|||||||
# write
|
# write
|
||||||
StartMessage="\nWrite $DeployedFile to $DevicePath..."
|
StartMessage="\nWrite $DeployedFile to $DevicePath..."
|
||||||
if echo $DeployedFile | grep -q '.wic.gz'; then
|
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
|
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
|
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
|
fi
|
||||||
# resize I
|
# resize I
|
||||||
EvalExAuto "parted -s $DevicePath -- resizepart 2 -0" "\nResize I ${DevicePath}2..."
|
EvalExAuto "parted -s $DevicePath -- resizepart 2 -0" "\nResize I ${DevicePath}2..."
|
||||||
|
|||||||
@@ -20,9 +20,9 @@ RootCardWriteCallback() {
|
|||||||
# write
|
# write
|
||||||
StartMessage="\nWrite $DeployedFile to $DevicePath..."
|
StartMessage="\nWrite $DeployedFile to $DevicePath..."
|
||||||
if echo $DeployedFile | grep -q '.wic.gz'; then
|
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
|
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
|
fi
|
||||||
# resize I
|
# resize I
|
||||||
EvalExAuto "parted -s $DevicePath -- resizepart 2 -0" "\nResize I ${DevicePath}2..."
|
EvalExAuto "parted -s $DevicePath -- resizepart 2 -0" "\nResize I ${DevicePath}2..."
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ RootCardWriteCallback() {
|
|||||||
# evt. write partition table
|
# evt. write partition table
|
||||||
CheckPartitionTable "$DevicePath"
|
CheckPartitionTable "$DevicePath"
|
||||||
# write
|
# 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
|
# resize I
|
||||||
EvalExAuto "parted -s $DevicePath -- resizepart 2 -0" "\nResize I ${DevicePath}2..."
|
EvalExAuto "parted -s $DevicePath -- resizepart 2 -0" "\nResize I ${DevicePath}2..."
|
||||||
# resize II
|
# resize II
|
||||||
|
|||||||
Reference in New Issue
Block a user