Hi Michael,
Am Freitag, den 27.03.2020, 13:06 +0100 schrieb Michael Olbrich:
> On Thu, Mar 26, 2020 at 05:03:56PM +, Denis Osterland-Heim wrote:
> > NXP user space util used by mfgtool.
> >
> > Signed-off-by: Denis Osterland-Heim
> > ---
> > ...001-sh-does-not-support-array-syntax.patch | 117 ++
> > .../series| 4 +
> > rules/imx-uuc.in | 7 ++
> > rules/imx-uuc.make| 60 +
> > 4 files changed, 188 insertions(+)
> > create mode 100644
> > patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
> > create mode 100644
> > patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/series
>
> The patch is not applied. The directory does not match.
You are right.
s/0.0-1/2019-11-07/ on path.
Can you fix up?
Shall I send a fix up?
Shall I send a v3?
Regards Denis
>
> Michael
>
> > create mode 100644 rules/imx-uuc.in
> > create mode 100644 rules/imx-uuc.make
> >
> > diff --git
> > a/patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
> > b/patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-
> > does-not-support-array-syntax.patch
> > new file mode 100644
> > index 0..995baea19
> > --- /dev/null
> > +++
> > b/patches/imx-uuc-0.0-1-gd6afb27e55d73d7ad08cd2dd51c784d8ec9694dc/0001-sh-does-not-support-array-syntax.patch
> > @@ -0,0 +1,117 @@
> > +From: Denis Osterland-Heim
> > +Date: Thu, 12 Mar 2020 17:36:22 +0100
> > +Subject: [PATCH] sh does not support array syntax
> > +
> > +Remove NFS support, because it uses additional arrays and it is not
> > +tested.
> > +
> > +Signed-off-by: Denis Osterland-Heim
> > +---
> > + linuxrc | 72
> > ++---
> > + 1 file changed, 6 insertions(+), 66 deletions(-)
> > +
> > +diff --git a/linuxrc b/linuxrc
> > +index 54bb8a2cbbd8..1f15e3cbdff3 100755
> > +--- a/linuxrc
> > b/linuxrc
> > +@@ -16,20 +16,8 @@ last=0;
> > +
> > + UDC_DIR=/sys/class/udc
> > +
> > +-function launch_dhcpd() {
> > +-
> > +- touch -f /var/lib/misc/udhcpd.leases
> > +- echo start 168.1.1.50 > /conf
> > +- echo end168.1.1.253 >> /conf
> > +- echo interface usb$1>>/conf
> > +-
> > +- ifconfig usb$1 168.1.1.1
> > +- udhcpd /conf
> > +-
> > +-}
> > +-
> > + function contains() {
> > +- for i in "${files[@]}"
> > ++ for i in $files
> > + do
> > + if [ "$i" == "$1" ]; then
> > + return 1;
> > +@@ -45,7 +33,8 @@ function launch_uuc() {
> > + echo 0x066F > idVendor
> > +
> > + if [[ ${cmdline} == *nfsroot* ]]; then
> > +- echo 0x9CFF > idProduct
> > ++ echo "unsupported"
> > ++ exit 1
> > + else
> > + echo 0x9BFF > idProduct
> > + fi
> > +@@ -69,57 +58,8 @@ function launch_uuc() {
> > + echo 0x40 > os_desc/b_vendor_code
> > +
> > + if [[ ${cmdline} == *nfsroot* ]]; then
> > +- mkdir functions/ncm.1
> > +- ln -s functions/ncm.1 configs/c.1/
> > +-# mkdir functions/acm.1
> > +-# ln -s functions/acm.1 configs/c.1/
> > +- echo $1 > UDC
> > +-
> > +- echo "Start config network"
> > +-
> > +-ifconfig usb$2 up
> > +-while [ ! -e /find_one ]
> > +-do
> > +-if [[ `ifconfig usb$2` == *inet6* ]]; then
> > +- break;
> > +- fi
> > +- sleep 1
> > +-done
> > +-
> > +- if [ -e /find_one ]; then
> > +- exit 0
> > +- fi
> > +-
> > +- touch /find_one
> > +-
> > +- launch_dhcpd $2
> > +-
> > +- remote=""
> > +- while [[ "$remote" == "" ]];
> > +- do
> > +- sleep 2
> > +- echo retry get remote ipaddress
> > +- ping6 -c2 -I usb$2 ff02::1
> > +-
> > +- remote=`ip -6 neighbor show dev usb$2`
> > +- remote=(${remote})
> > +- remote=${remote[0]}
> > +- done
> > +-
> > +-nfs=${cmdline#*nfsroot=}
> > +-nfs=($nfs)
> > +-nfs=${nfs[0]}
> > +-
> > +- nfs=${nfs##*:}
> > +-
> > +-echo ${remote} ${nfs}
> > +-
> > +- mount -t nfs [${remote}%usb$2]:${nfsroot}/${nfs} /mnt/
> > +-
> > +-cd /
> > +-
> > +- touch /exit_scan
> > +-
> > ++ echo "unsuppored"
> > ++ exit 1
> > + else
> > + mkdir functions/ffs.utp$2
> > + mkdir /dev/usb-utp$2
> > +@@ -161,7 +101,7 @@ if test "$(ls -A "$UDC_DIR")"; then
> > + for entry in *
> > + do
> > + if contains $entry; then
> > +- files[$last]=$entry;
> > ++ files="$files $entry";
> > +