Skip to contentSkip to conversation

sdcard_image: Copy user.txt/uEnv.txt if it exists in /boot

PATCH Koen Kooi 2 participants 4 messages Oct 20, 2011 2 messages not in the archive

lore
Share & tools
lore

Koen Kooi

author
#1 lore raw
In reply to a message not in the archive

[added meta-ti list]

Op 20 okt. 2011, om 05:52 heeft Joel A Fernandes het volgende geschreven:

Quoted 1 line

Pick up uEnv.txt/user.txt U-boot environment files installed in /boot

This doesn't match what the patch does :/

Quoted 11 lines

---
classes/sdcard_image.bbclass | 4 +++-

1 files changed, 3 insertions(+), 1 deletions(-)
classes/sdcard_image.bbclass +0 -0
index ed9d779..c535ad2 100644

classes/sdcard_image.bbclass IMAGE_CMD_sdimg () { · line 92

Quoted 8 lines
classes/sdcard_image.bbclass +3 -1
@@ -86,8 +86,10 @@ IMAGE_CMD_sdimg () {
 		suffix=bin
 	fi
 
+	cp -v ${IMAGE_ROOTFS}/boot/{user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true
+
 	if [ -e ${IMAGE_ROOTFS}/boot/u-boot.$suffix ] ; then
-		cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix,user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true
+		cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix} ${WORKDIR}/tmp-mnt-boot || true

Your patch is effectively a noop, I don't see the value in applying it.

regards,

Koen

#3 lore raw
In reply to a message not in the archive
Quoted 7 lines · Koen Kooi

[added meta-ti list]

Op 20 okt. 2011, om 05:52 heeft Joel A Fernandes het volgende geschreven:

Quoted 1 line

Pick up uEnv.txt/user.txt U-boot environment files installed in /boot

This doesn't match what the patch does :/

Yes it does

Quoted 15 lines
Quoted 15 lines

---
classes/sdcard_image.bbclass |    4 +++-

1 files changed, 3 insertions(+), 1 deletions(-)
classes/sdcard_image.bbclass +0 -0
index ed9d779..c535ad2 100644
@@ -86,8 +86,10 @@ IMAGE_CMD_sdimg () {

              suffix=bin
      fi

Quoted 8 lines
Quoted 5 lines

+     cp -v ${IMAGE_ROOTFS}/boot/{user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true
+
      if [ -e ${IMAGE_ROOTFS}/boot/u-boot.$suffix ] ; then
-             cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix,user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true
+             cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix} ${WORKDIR}/tmp-mnt-boot || true

Your patch is effectively a noop, I don't see the value in applying it.

There is quite a lot of value in applying it.

I suggest you try to build an image (cloud9 / ti-hw-bringup) and notice that there is no uEnv.txt in the boot partition.

Thanks,
Joel

author
#4 lore raw

Op 20 okt. 2011, om 08:17 heeft Joel A Fernandes het volgende geschreven:

Quoted 10 lines · Koen Kooi
Quoted 7 lines

[added meta-ti list]

Op 20 okt. 2011, om 05:52 heeft Joel A Fernandes het volgende geschreven:

Quoted 1 line

Pick up uEnv.txt/user.txt U-boot environment files installed in /boot

This doesn't match what the patch does :/

Yes it does

"pick up" implies you're adding something new instead of fixing it. Please write better commit messages.

Quoted 25 lines
Quoted 16 lines
Quoted 16 lines

---
classes/sdcard_image.bbclass | 4 +++-

1 files changed, 3 insertions(+), 1 deletions(-)
classes/sdcard_image.bbclass +0 -0
index ed9d779..c535ad2 100644
@@ -86,8 +86,10 @@ IMAGE_CMD_sdimg () {
              suffix=bin
      fi
 
Quoted 8 lines

classes/sdcard_image.bbclass IMAGE_CMD_sdimg () { · line 92

Quoted 5 lines
classes/sdcard_image.bbclass +3 -1
+     cp -v ${IMAGE_ROOTFS}/boot/{user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true
+
      if [ -e ${IMAGE_ROOTFS}/boot/u-boot.$suffix ] ; then
-             cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix,user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true
+             cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix} ${WORKDIR}/tmp-mnt-boot || true

Your patch is effectively a noop, I don't see the value in applying it.

Quoted 4 lines

There is quite a lot of value in applying it.

I suggest you try to build an image (cloud9 / ti-hw-bringup) and notice that there is no uEnv.txt in the boot partition.

If you're fixing the bug that {1,2,3} will only pick 1, but forget 2,3 then user.txt is still broken. If you're saying uboot.suffix is not in /boot, we need to fix that. Either way, I'm not supposed to be guessing that, you should explain that in the commit message or with comments in the code or both.

regards,

Koen

#5 lore raw
Quoted 23 lines
Quoted 23 lines
Quoted 22 lines
Quoted 14 lines

---
classes/sdcard_image.bbclass |    4 +++-

1 files changed, 3 insertions(+), 1 deletions(-)
classes/sdcard_image.bbclass +0 -0
index ed9d779..c535ad2 100644
@@ -86,8 +86,10 @@ IMAGE_CMD_sdimg () {

              suffix=bin
      fi

Quoted 5 lines

+     cp -v ${IMAGE_ROOTFS}/boot/{user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true
+
      if [ -e ${IMAGE_ROOTFS}/boot/u-boot.$suffix ] ; then
-             cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix,user.txt,uEnv.txt} ${WORKDIR}/tmp-mnt-boot || true
+             cp -v ${IMAGE_ROOTFS}/boot/{u-boot.$suffix} ${WORKDIR}/tmp-mnt-boot || true

Your patch is effectively a noop, I don't see the value in applying it.

Quoted 7 lines
Quoted 4 lines

There is quite a lot of value in applying it.

I suggest you try to build an image (cloud9 / ti-hw-bringup) and notice that there is no uEnv.txt in the boot partition.

If you're fixing the bug that {1,2,3} will only pick 1, but forget 2,3 then user.txt is still broken. If you're saying uboot.suffix is not in /boot, we need to fix that. Either way, I'm not supposed to be guessing that, you should explain that in the commit message or with comments in the code or both.

Please let the sdcard class copy the U-boot environment files (as it originally was) from /boot to the boot partition and not make it conditional on the presence of anything else.

Joel