mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* MFGTools from NXP
@ 2019-10-10 13:03 Mihaita Ivascu
  2019-10-11  7:21 ` Marco Felsch
  0 siblings, 1 reply; 24+ messages in thread
From: Mihaita Ivascu @ 2019-10-10 13:03 UTC (permalink / raw)
  To: barebox

Hello all,

    Does anybody have experience with using MFGTools to flash the
barebox and kernel in NAND for imx6ul platforms?

Thanks,
       Mihaita

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-10 13:03 MFGTools from NXP Mihaita Ivascu
@ 2019-10-11  7:21 ` Marco Felsch
  2019-10-11  9:47   ` Mihaita Ivascu
  0 siblings, 1 reply; 24+ messages in thread
From: Marco Felsch @ 2019-10-11  7:21 UTC (permalink / raw)
  To: Mihaita Ivascu; +Cc: barebox

Hi Mihaita,

On 19-10-10 15:03, Mihaita Ivascu wrote:
> Hello all,
> 
>     Does anybody have experience with using MFGTools to flash the
> barebox and kernel in NAND for imx6ul platforms?

Hm.. I think the most of us are using the imx-usb-loader tool ;) I
used it a long time ago but let's try if I can help you. So what is your
question?

Regards,
  Marco

> Thanks,
>        Mihaita
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-11  7:21 ` Marco Felsch
@ 2019-10-11  9:47   ` Mihaita Ivascu
  2019-10-14 13:07     ` Mihaita Ivascu
  0 siblings, 1 reply; 24+ messages in thread
From: Mihaita Ivascu @ 2019-10-11  9:47 UTC (permalink / raw)
  To: Marco Felsch; +Cc: barebox

[-- Attachment #1: Type: text/plain, Size: 1401 bytes --]

Hello Marco,

   Thanks to your reply. I am not keen to use specifically MFGTool but
I do need a method to load flash new barebox and kernel images from
windows side.
   I have tried with MFGTools but was not successfully when using
kobs-ng to flash the barebox.  I have attached a log that I send to
NXP.

   If there is more knowledge on how to use imx-usb-loader than I
would give it a try.

Thanks,
      Mihaita

On Fri, Oct 11, 2019 at 9:21 AM Marco Felsch <m.felsch@pengutronix.de> wrote:
>
> Hi Mihaita,
>
> On 19-10-10 15:03, Mihaita Ivascu wrote:
> > Hello all,
> >
> >     Does anybody have experience with using MFGTools to flash the
> > barebox and kernel in NAND for imx6ul platforms?
>
> Hm.. I think the most of us are using the imx-usb-loader tool ;) I
> used it a long time ago but let's try if I can help you. So what is your
> question?
>
> Regards,
>   Marco
>
> > Thanks,
> >        Mihaita
> >
> > _______________________________________________
> > barebox mailing list
> > barebox@lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/barebox
> >
>
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

[-- Attachment #2: kobs-ng.txt --]
[-- Type: text/plain, Size: 10525 bytes --]

I am trying to update the mtd partitions on imx6ul platform using mfgtools . I have created a .xml script

    Everything runs without issues until I want to flash the new barebox bootloader using kobs-ng tool.

 

UTP: received command '$ mount -t debugfs debugfs /sys/kernel/debug'
UTP: executing "mount -t debugfs debugfs /sys/kernel/debug"
UTP: sending Success to kernel for command $ mount -t debugfs debugfs /sys/kernel/debug.
[ 6.009463] utp_poll: pass returned.
UTP: received command '$ mount | grep ^debugfs'
UTP: executing "mount | grep ^debugfs"
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
UTP: sending Success to kernel for command $ mount | grep ^debugfs.
[ 6.271066] utp_poll: pass returned.
UTP: received command '$ flash_erase /dev/mtd0 0 0'
UTP: executing "flash_erase /dev/mtd0 0 0"
Erasing 128 Kibyte @ 64004e0000 -- -1 % complete
UTP: sending Success to kernel for command $ flash_erase /dev/mtd0 0 0.
[ 6.530622] utp_poll: pass returned.
UTP: received command 'send'
UTP: sending Success to kernel for command send.
UTP: received command '$ kobs-ng init -x -v --chip_0_device_path=/dev/mtd0 $FILE'
UTP: executing "kobs-ng init -x -v --chip_0_device_path=/dev/mtd0 $FILE"
MTD CONFIG:
chip_0_device_path = "/dev/mtd0"
chip_1_device_path = "(null)"
search_exponent = 2
data_setup_time = 80
data_hold_time = 60
address_setup_time = 25
data_sample_time = 6
row_address_size = 3
column_address_size = 2
read_command_code1 = 0
read_command_code2 = 48
boot_stream_major_version = 1
boot_stream_minor_version = 0
boot_stream_sub_version = 0
ncb_version = 3
boot_stream_1_address = 0
boot_stream_2_address = 0
-- We add the 1k-padding to the uboot.
.tmp_kobs_ng: verifying using key '00000000000000000000000000000000'
.tmp_kobs_ng: is a valid bootstream for key '00000000000000000000000000000000'
mtd: Linux[ 6.693158] ------------[ cut here ]------------
[ 6.698005] Kernel BUG at c057cdfc [verbose debug info unavailable]
[ 6.704291] Internal error: Oops - BUG: 0 [#1] SMP ARM
[ 6.709449] Modules linked in:
[ 6.712552] CPU: 0 PID: 111 Comm: kobs-ng Not tainted 4.8.0 #18
[ 6.718486] Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[ 6.724684] task: c3e58000 task.stack: c3e2e000
[ 6.729248] PC is at nand_fill_oob+0x44/0xac
[ 6.733546] LR is at mtd_ooblayout_free+0x5c/0x74
[ 6.738272] pc : [<c057cdfc>] lr : [<c055f88c>] psr: a0000013
[ 6.738272] sp : c3e2fca0 ip : c3e2fbf0 fp : c3e2fcc4
[ 6.749770] r10: c3d89800 r9 : 00000100 r8 : 00000000
[ 6.755013] r7 : 00000000 r6 : c3e2fdc8 r5 : de42e0b8 r4 : 00000010
[ 6.761561] r3 : c3e2fc50 r2 : c3e2fc50 r1 : 00000001 r0 : ffffffde
[ 6.768109] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none
[ 6.775262] Control: 10c5387d Table: 83e6006a DAC: 00000051
[ 6.781023] Process kobs-ng (pid: 111, stack limit = 0xc3e2e210)
[ 6.787046] Stack: (0xc3e2fca0 to 0xc3e30000)
[ 6.791432] fca0: 00000000 c3e2fcb0 de42e0b8 00000800 00000800 00000000 c3e2fd34 c3e2fcc8
[ 6.799634] fcc0: c057d19c c057cdc4 c3e2fcec c3e2fcd8 c0964e78 c0173f98 de42e0b8 de42e710
[ 6.807838] fce0: c3e2fd34 0000003f 00000000 00000000 00000000 00000010 00000010 c3d89800
[ 6.816039] fd00: 00000100 00000000 60000013 c3e2fdc8 de42e0b8 00080000 00000000 00000800
[ 6.824241] fd20: 00000000 00000000 c3e2fd5c c3e2fd38 c057d6a8 c057ce70 c3e2fdc8 c3e2fd48
[ 6.832444] fd40: 00000000 00000000 00080800 00000000 c3e2fd84 c3e2fd60 c0562670 c057d614
[ 6.840646] fd60: c3e2fdc8 00000800 c0562604 00000051 c3ccb800 bede4ac8 c3e2fda4 c3e2fd88
[ 6.848847] fd80: c055ec9c c0562610 c3e2fdc8 bede4ac8 00000800 00099110 c3e2fedc c3e2fda8
[ 6.857049] fda0: c0564b8c c055ec64 c3e2fdc8 00000002 c0f229e8 00000000 c3e2fe4c c3e2fdc8
[ 6.865249] fdc0: c016f49c c016e4e8 00000001 00000800 00000000 00000000 00000000 00000000
[ 6.873451] fde0: c3d89800 00000010 00080000 00000000 00000800 00000000 00000000 00000000
[ 6.881654] fe00: 00098910 00000000 00099110 00000000 00000001 00080000 c3e2e000 00000000
[ 6.889856] fe20: c3e2fe54 c3e2fe30 c016ec14 c016e4e8 c096101c c3e58000 00000001 c173d414
[ 6.898059] fe40: c3e58000 c3e2e000 c3e2fe74 c3e2fe58 c016ed78 c016ebb4 c0f35cc4 60000013
[ 6.906261] fe60: c0f35cc8 c173d414 c3e2fe84 c3e2fe78 c016ee44 c016ec48 c3e2fedc c3e2fe88
[ 6.914462] fe80: c096101c c016ee3c 00000001 00000000 c056554c c3e2fea0 c0962da4 c014e30c
[ 6.922665] fea0: 00000001 c3e2fea0 c3e2fedc c0f35cc4 00000000 c0f35cc4 c3e01dc0 c0304d18
[ 6.930865] fec0: bede4ac8 00000007 c3e2e000 00000000 c3e2fefc c3e2fee0 c056555c c0564130
[ 6.939068] fee0: bede4ac8 de7eef50 c3e01dc0 c02319c4 c3e2ff7c c3e2ff00 c0230fc0 c0565530
[ 6.947269] ff00: de64e8c8 c022d69c 00000002 de5c96a0 ffffff9c c3cdc000 00000000 00000000
[ 6.955471] ff20: c3e2e000 0000002a de64e8c0 de5c96a0 00000002 de64e8c8 c3e2e000 00000000
[ 6.963672] ff40: c3e2ff7c c3e2ff50 c021e030 c02610a0 00000000 c3e01dc0 00000007 c3e01dc0
[ 6.971874] ff60: c0304d18 bede4ac8 c3e2e000 00000000 c3e2ffa4 c3e2ff80 c02319c4 c0230f30
[ 6.980075] ff80: 00097838 00000000 00000001 00000036 c0107fc4 c3e2e000 00000000 c3e2ffa8
[ 6.988278] ffa0: c0107e20 c0231994 00097838 00000000 00000007 c0304d18 bede4ac8 00000000
[ 6.996480] ffc0: 00097838 00000000 00000001 00000036 00098910 00000800 00000800 00097838
[ 7.004682] ffe0: 0003f064 bede4a9c 0001470c b6ebab9c 20000010 00000007 9eff6861 9eff6c61
[ 7.012872] Backtrace:
[ 7.015377] [<c057cdb8>] (nand_fill_oob) from [<c057d19c>] (nand_do_write_ops+0x338/0x41c)
[ 7.023657] r7:00000000 r6:00000800 r5:00000800 r4:de42e0b8
[ 7.029435] [<c057ce64>] (nand_do_write_ops) from [<c057d6a8>] (nand_write_oob+0xa0/0xc0)
[ 7.037627] r10:00000000 r9:00000000 r8:00000800 r7:00000000 r6:00080000 r5:de42e0b8
[ 7.045582] r4:c3e2fdc8
[ 7.048166] [<c057d608>] (nand_write_oob) from [<c0562670>] (part_write_oob+0x6c/0x7c)
[ 7.056095] r7:00000000 r6:00080800 r5:00000000 r4:00000000
[ 7.061870] [<c0562604>] (part_write_oob) from [<c055ec9c>] (mtd_write_oob+0x44/0x5c)
[ 7.069713] r7:bede4ac8 r6:c3ccb800 r5:00000051 r4:c0562604
[ 7.075491] [<c055ec58>] (mtd_write_oob) from [<c0564b8c>] (mtdchar_ioctl+0xa68/0x1400)
[ 7.083507] r4:00099110
[ 7.086092] [<c0564124>] (mtdchar_ioctl) from [<c056555c>] (mtdchar_unlocked_ioctl+0x38/0x50)
[ 7.094629] r10:00000000 r9:c3e2e000 r8:00000007 r7:bede4ac8 r6:c0304d18 r5:c3e01dc0
[ 7.102584] r4:c0f35cc4
[ 7.105167] [<c0565524>] (mtdchar_unlocked_ioctl) from [<c0230fc0>] (do_vfs_ioctl+0x9c/0xa64)
[ 7.113705] r7:c02319c4 r6:c3e01dc0 r5:de7eef50 r4:bede4ac8
[ 7.119474] [<c0230f24>] (do_vfs_ioctl) from [<c02319c4>] (SyS_ioctl+0x3c/0x64)
[ 7.126798] r10:00000000 r9:c3e2e000 r8:bede4ac8 r7:c0304d18 r6:c3e01dc0 r5:00000007
[ 7.134751] r4:c3e01dc0
[ 7.137335] [<c0231988>] (SyS_ioctl) from [<c0107e20>] (ret_fast_syscall+0x0/0x1c)
[ 7.144922] r9:c3e2e000 r8:c0107fc4 r7:00000036 r6:00000001 r5:00000000 r4:00097838
[ 7.152803] Code: 0a00000c 3a000002 e3530002 0a000000 (e7f001f2)
[ 7.158925] ---[ end trace 99ebc33cf53f1bb5 ]---
4.8
mtd: use new bch layout raw access mode
mtd: opening: "/dev/mtd0"
Cannot open BCH geometry node: "/sys/kernel/debug/gpmi-nand/bch_geometry"
NFC geometry :
ECC Strength : 8
Page Size in Bytes : 2112
Metadata size : 10
ECC Chunk Size in byte : 512
ECC Chunk count : 4
Block Mark Byte Offset : 1999
Block Mark Bit Offset : 0
====================================================
mtd: opened '/dev/mtd0' - '(null)'
mtd: max_boot_stream_size_in_bytes = 2097152
mtd: boot_stream_size_in_bytes = 603649
mtd: boot_stream_size_in_pages = 295
mtd: #1 0x00100000 - 0x00300000 (0x00193601)
mtd: #2 0x00300000 - 0x00500000 (0x00393601)
FCB
m_u32Checksum = 0x00000000
m_u32FingerPrint = 0x20424346
m_u32Version = 0x01000000
m_NANDTiming.m_u8DataSetup = 80
m_NANDTiming.m_u8DataHold = 60
m_NANDTiming.m_u8AddressSetup = 25
m_NANDTiming.m_u8DSAMPLE_TIME = 6
m_u32PageDataSize = 2048
m_u32TotalPageSize = 2112
m_u32SectorsPerBlock = 64
m_u32NumberOfNANDs = 0
m_u32TotalInternalDie = 0
m_u32CellType = 0
m_u32EccBlockNEccType = 4
m_u32EccBlock0Size = 512
m_u32EccBlockNSize = 512
m_u32EccBlock0EccType = 4
m_u32MetadataBytes = 10
m_u32NumEccBlocksPerPage = 3
m_u32EccBlockNEccLevelSDK = 0
m_u32EccBlock0SizeSDK = 0
m_u32EccBlockNSizeSDK = 0
m_u32EccBlock0EccLevelSDK = 0
m_u32NumEccBlocksPerPageSDK = 0
m_u32MetadataBytesSDK = 0
m_u32EraseThreshold = 0
m_u32Firmware1_startingPage = 512
m_u32Firmware2_startingPage = 1536
m_u32PagesInFirmware1 = 295
m_u32PagesInFirmware2 = 295
m_u32DBBTSearchAreaStartAddress = 256
m_u32BadBlockMarkerByte = 1999
m_u32BadBlockMarkerStartBit = 0
m_u32BBMarkerPhysicalOffset = 2048
m_u32BCHType = 0
m_NANDTMTiming.m_u32TMTiming2_ReadLatency = 0
m_NANDTMTiming.m_u32TMTiming2_PreambleDelay = 0
m_NANDTMTiming.m_u32TMTiming2_CEDelay = 0
m_NANDTMTiming.m_u32TMTiming2_PostambleDelay = 0
m_NANDTMTiming.m_u32TMTiming2_CmdAddPause = 0
m_NANDTMTiming.m_u32TMTiming2_DataPause = 0
m_NANDTMTiming.m_u32TMSpeed = 0
m_NANDTMTiming.m_u32TMTiming1_BusyTimeout = 0
m_u32DISBBM = 0
m_u32BBMarkerPhysicalOffsetInSpareData = 0
m_u32OnfiSyncEnable = 0
m_NANDONFITiming.m_u32ONFISpeed = 0
m_NANDONFITiming.m_u32ONFITiming_ReadLatency = 0
m_NANDONFITiming.m_u32ONFITiming_CEDelay = 0
m_NANDONFITiming.m_u32ONFITiming_PreambleDelay = 0
m_NANDONFITiming.m_u32ONFITiming_PostambleDelay = 0
m_NANDONFITiming.m_u32ONFITiming_CmdAddPause = 0
m_NANDONFITiming.m_u32ONFITiming_DataPause = 0
m_NANDONFITiming.m_u32ONFITiming_BusyTimeout = 0
m_u32DISBBSearch = 0
m_u32RandomizerEnable = 0
m_u32ReadRetryEnable = 0
m_u32ReadRetrySeqLength = 0
DBBT
m_u32Checksum = 0x00000000
m_u32FingerPrint = 0x54424244
m_u32Version = 0x01000000
m_u32DBBTNumOfPages = 0
Firmware: image #0 @ 0x100000 size 0x93800 - available 0x200000
Firmware: image #1 @ 0x300000 size 0x93800 - available 0x200000
-------------- Start to write the [ FCB ] -----
mtd: erasing @0:0x0-0x20000
mtd: Writing FCB0 [ @0:0x0 ] (840) *
mtd: erasing @0:0x20000-0x40000
mtd: Writing FCB1 [ @0:0x20000 ] (840) *
mtd: erasing @0:0x40000-0x60000
mtd: Writing FCB2 [ @0:0x40000 ] (840) *
mtd: erasing @0:0x60000-0x80000
mtd: Writing FCB3 [ @0:0x60000 ] (840) *
mtd_commit_bcb(FCB): status 0

-------------- Start to write the [ DBBT ] -----
mtd: erasing @0:0x80000-0xa0000
mtd: Writing DBBT0 [ @0:0x80000 ] (800) *

 

As it can be seen debufs seems to be mounted successfully but still i get :

 

Cannot open BCH geometry node: "/sys/kernel/debug/gpmi-nand/bch_geometry"

[-- Attachment #3: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-11  9:47   ` Mihaita Ivascu
@ 2019-10-14 13:07     ` Mihaita Ivascu
  2019-10-15 14:07       ` Mihaita Ivascu
  0 siblings, 1 reply; 24+ messages in thread
From: Mihaita Ivascu @ 2019-10-14 13:07 UTC (permalink / raw)
  To: Marco Felsch; +Cc: barebox

Hello all,

    Can I use imx-usb-loader tool from a windows host? I don't think
so. If that is the case then I am stuck with MFGTools

Thanks,
       Mihaita


On Fri, Oct 11, 2019 at 11:47 AM Mihaita Ivascu
<mihaita_ivascu@trimble.com> wrote:
>
> Hello Marco,
>
>    Thanks to your reply. I am not keen to use specifically MFGTool but
> I do need a method to load flash new barebox and kernel images from
> windows side.
>    I have tried with MFGTools but was not successfully when using
> kobs-ng to flash the barebox.  I have attached a log that I send to
> NXP.
>
>    If there is more knowledge on how to use imx-usb-loader than I
> would give it a try.
>
> Thanks,
>       Mihaita
>
> On Fri, Oct 11, 2019 at 9:21 AM Marco Felsch <m.felsch@pengutronix.de> wrote:
> >
> > Hi Mihaita,
> >
> > On 19-10-10 15:03, Mihaita Ivascu wrote:
> > > Hello all,
> > >
> > >     Does anybody have experience with using MFGTools to flash the
> > > barebox and kernel in NAND for imx6ul platforms?
> >
> > Hm.. I think the most of us are using the imx-usb-loader tool ;) I
> > used it a long time ago but let's try if I can help you. So what is your
> > question?
> >
> > Regards,
> >   Marco
> >
> > > Thanks,
> > >        Mihaita
> > >
> > > _______________________________________________
> > > barebox mailing list
> > > barebox@lists.infradead.org
> > > http://lists.infradead.org/mailman/listinfo/barebox
> > >
> >
> > --
> > Pengutronix e.K.                           |                             |
> > Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> > Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-14 13:07     ` Mihaita Ivascu
@ 2019-10-15 14:07       ` Mihaita Ivascu
  2019-10-15 14:17         ` Ahmad Fatoum
  0 siblings, 1 reply; 24+ messages in thread
From: Mihaita Ivascu @ 2019-10-15 14:07 UTC (permalink / raw)
  To: Marco Felsch; +Cc: barebox

Hello,

   does anyone have experience with using imx_usb_loader to flash the
barebox on a NAND(mtd partition)? If yes some reference scripts would
be helpful for me. Or where should I look for an example?

Thanks,
      Mihaita Ivascu


On Mon, Oct 14, 2019 at 3:07 PM Mihaita Ivascu
<mihaita_ivascu@trimble.com> wrote:
>
> Hello all,
>
>     Can I use imx-usb-loader tool from a windows host? I don't think
> so. If that is the case then I am stuck with MFGTools
>
> Thanks,
>        Mihaita
>
>
> On Fri, Oct 11, 2019 at 11:47 AM Mihaita Ivascu
> <mihaita_ivascu@trimble.com> wrote:
> >
> > Hello Marco,
> >
> >    Thanks to your reply. I am not keen to use specifically MFGTool but
> > I do need a method to load flash new barebox and kernel images from
> > windows side.
> >    I have tried with MFGTools but was not successfully when using
> > kobs-ng to flash the barebox.  I have attached a log that I send to
> > NXP.
> >
> >    If there is more knowledge on how to use imx-usb-loader than I
> > would give it a try.
> >
> > Thanks,
> >       Mihaita
> >
> > On Fri, Oct 11, 2019 at 9:21 AM Marco Felsch <m.felsch@pengutronix.de> wrote:
> > >
> > > Hi Mihaita,
> > >
> > > On 19-10-10 15:03, Mihaita Ivascu wrote:
> > > > Hello all,
> > > >
> > > >     Does anybody have experience with using MFGTools to flash the
> > > > barebox and kernel in NAND for imx6ul platforms?
> > >
> > > Hm.. I think the most of us are using the imx-usb-loader tool ;) I
> > > used it a long time ago but let's try if I can help you. So what is your
> > > question?
> > >
> > > Regards,
> > >   Marco
> > >
> > > > Thanks,
> > > >        Mihaita
> > > >
> > > > _______________________________________________
> > > > barebox mailing list
> > > > barebox@lists.infradead.org
> > > > http://lists.infradead.org/mailman/listinfo/barebox
> > > >
> > >
> > > --
> > > Pengutronix e.K.                           |                             |
> > > Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> > > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> > > Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-15 14:07       ` Mihaita Ivascu
@ 2019-10-15 14:17         ` Ahmad Fatoum
  2019-10-15 14:41           ` Mihaita Ivascu
  0 siblings, 1 reply; 24+ messages in thread
From: Ahmad Fatoum @ 2019-10-15 14:17 UTC (permalink / raw)
  To: barebox

Hello,

On 10/15/19 4:07 PM, Mihaita Ivascu wrote:
> Hello,
> 
>    does anyone have experience with using imx_usb_loader to flash the
> barebox on a NAND(mtd partition)? If yes some reference scripts would
> be helpful for me. Or where should I look for an example?

Check out this thread:
https://www.spinics.net/lists/u-boot-v2/msg37199.html

TL;DR: imx_usb_loader to get barebox into SDRAM, then Android Fastboot for flashing

> 
> Thanks,
>       Mihaita Ivascu
> 
> 



-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-15 14:17         ` Ahmad Fatoum
@ 2019-10-15 14:41           ` Mihaita Ivascu
  2019-10-15 14:44             ` Ahmad Fatoum
  0 siblings, 1 reply; 24+ messages in thread
From: Mihaita Ivascu @ 2019-10-15 14:41 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

[-- Attachment #1: Type: text/plain, Size: 2125 bytes --]

Hello,

   Thanks for your link. I have tried and got to the step shown in the
attachment.
   Looked here:
https://www.barebox.org/doc/latest/user/usb.html#usb-gadget-autostart-support
  did not understand how to create and execute a script from the host.
  For me the imx6ul board must be in peripheral mode. I wish to flash
the barebox from a windows/Linux workstation, not using usb stick.

barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ otg.mode=peripheral
barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/
barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/
barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ usbgadget -A
/kernel(kernel)c,/initrd(initrd)c,/devicetree(devicetree)c
udc0: registering UDC driver [g_multi]
multi_bind: creating Fastboot function
g_multi usbgadget: Multifunction Composite Gadget
g_multi usbgadget: userspace failed to provide iSerialNumber
g_multi usbgadget: g_multi ready
barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
fastboot: No such file or directory
barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/

thanks,
     Mihaita


On Tue, Oct 15, 2019 at 4:17 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>
> Hello,
>
> On 10/15/19 4:07 PM, Mihaita Ivascu wrote:
> > Hello,
> >
> >    does anyone have experience with using imx_usb_loader to flash the
> > barebox on a NAND(mtd partition)? If yes some reference scripts would
> > be helpful for me. Or where should I look for an example?
>
> Check out this thread:
> https://www.spinics.net/lists/u-boot-v2/msg37199.html
>
> TL;DR: imx_usb_loader to get barebox into SDRAM, then Android Fastboot for flashing
>
> >
> > Thanks,
> >       Mihaita Ivascu
> >
> >
>
>
>
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
>
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

[-- Attachment #2: fastboot.PNG --]
[-- Type: image/png, Size: 30276 bytes --]

[-- Attachment #3: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-15 14:41           ` Mihaita Ivascu
@ 2019-10-15 14:44             ` Ahmad Fatoum
  2019-10-16  7:32               ` Mihaita Ivascu
  0 siblings, 1 reply; 24+ messages in thread
From: Ahmad Fatoum @ 2019-10-15 14:44 UTC (permalink / raw)
  To: Mihaita Ivascu; +Cc: barebox

On 10/15/19 4:41 PM, Mihaita Ivascu wrote:
> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
That's what you run on your host system, not on the target.
-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-15 14:44             ` Ahmad Fatoum
@ 2019-10-16  7:32               ` Mihaita Ivascu
  2019-10-16  8:40                 ` Mihaita Ivascu
  0 siblings, 1 reply; 24+ messages in thread
From: Mihaita Ivascu @ 2019-10-16  7:32 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

[-- Attachment #1: Type: text/plain, Size: 1014 bytes --]

Thanks. I have installed ADB and fastboot drivers for Win from
https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/
I have installed according to the attachment.
But is not recognized in Windows. I did reboot the system after
installation but did not add any new env variable.

H:\>fastboot devices -l
'fastboot' is not recognized as an internal or external command,
operable program or batch file.

Thanks,
      Mihaita


On Tue, Oct 15, 2019 at 4:44 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>
> On 10/15/19 4:41 PM, Mihaita Ivascu wrote:
> > barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
> That's what you run on your host system, not on the target.
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

[-- Attachment #2: ADB_installation.PNG --]
[-- Type: image/png, Size: 38937 bytes --]

[-- Attachment #3: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-16  7:32               ` Mihaita Ivascu
@ 2019-10-16  8:40                 ` Mihaita Ivascu
  2019-10-16  8:51                   ` Ahmad Fatoum
  0 siblings, 1 reply; 24+ messages in thread
From: Mihaita Ivascu @ 2019-10-16  8:40 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

[-- Attachment #1: Type: text/plain, Size: 1422 bytes --]

Hello again,

   I have the target in otg peripheral mode, ADB and fastboot drivers
installed but fastboot does not list any device. The board is detected
in device manager
   Please see attachment. Any ideas how should I proceed? Thanks for
the support.

Thanks,
      Mihaita

On Wed, Oct 16, 2019 at 9:32 AM Mihaita Ivascu
<mihaita_ivascu@trimble.com> wrote:
>
> Thanks. I have installed ADB and fastboot drivers for Win from
> https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/
> I have installed according to the attachment.
> But is not recognized in Windows. I did reboot the system after
> installation but did not add any new env variable.
>
> H:\>fastboot devices -l
> 'fastboot' is not recognized as an internal or external command,
> operable program or batch file.
>
> Thanks,
>       Mihaita
>
>
> On Tue, Oct 15, 2019 at 4:44 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
> >
> > On 10/15/19 4:41 PM, Mihaita Ivascu wrote:
> > > barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
> > That's what you run on your host system, not on the target.
> > --
> > Pengutronix e.K.                           |                             |
> > Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> > Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

[-- Attachment #2: fastboot2.PNG --]
[-- Type: image/png, Size: 82492 bytes --]

[-- Attachment #3: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-16  8:40                 ` Mihaita Ivascu
@ 2019-10-16  8:51                   ` Ahmad Fatoum
  2019-10-16  9:21                     ` Mihaita Ivascu
  0 siblings, 1 reply; 24+ messages in thread
From: Ahmad Fatoum @ 2019-10-16  8:51 UTC (permalink / raw)
  To: Mihaita Ivascu; +Cc: barebox

On 10/16/19 10:40 AM, Mihaita Ivascu wrote:
> Hello again,
> 
>    I have the target in otg peripheral mode, ADB and fastboot drivers
> installed but fastboot does not list any device. The board is detected
> in device manager

Try enabling the ACM gadget in barebox and connect with PuTTY and see if
at least that works. It worked for me on Windows with another i.MX board
a month ago.

As for fastboot, I don't know how to configure it on Windows, but surely
Android Modding boards will have you covered there.

>    Please see attachment. Any ideas how should I proceed? Thanks for
> the support.

You can enable the ACM gadget in barebox and see if that works, I tested
it on Windows with an i.MX board a month ago

Cheers
Ahmad

> 
> Thanks,
>       Mihaita
> 
> On Wed, Oct 16, 2019 at 9:32 AM Mihaita Ivascu
> <mihaita_ivascu@trimble.com> wrote:
>>
>> Thanks. I have installed ADB and fastboot drivers for Win from
>> https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/
>> I have installed according to the attachment.
>> But is not recognized in Windows. I did reboot the system after
>> installation but did not add any new env variable.
>>
>> H:\>fastboot devices -l
>> 'fastboot' is not recognized as an internal or external command,
>> operable program or batch file.
>>
>> Thanks,
>>       Mihaita
>>
>>
>> On Tue, Oct 15, 2019 at 4:44 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>>>
>>> On 10/15/19 4:41 PM, Mihaita Ivascu wrote:
>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
>>> That's what you run on your host system, not on the target.
>>> --
>>> Pengutronix e.K.                           |                             |
>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-16  8:51                   ` Ahmad Fatoum
@ 2019-10-16  9:21                     ` Mihaita Ivascu
  2019-10-16  9:26                       ` Ahmad Fatoum
  0 siblings, 1 reply; 24+ messages in thread
From: Mihaita Ivascu @ 2019-10-16  9:21 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

Hello,

   Thanks for your answer. Yes i am able to connect via PUTTY to the target.
   Then I should use some adb commands in order to push the new
barebox/firmware ? do you know where I could find some examples?

   Also I have a question: purpose of this activity is for me to be
able to flash some imx6ul boards that have no firmware: no barebox.
   So I know hardware config for the port is otg mode but as I have no
barebox running them before I am wondering if I will be able to
connect via PUTTY if I do not set the ACM gadget from barebox?

Thanks,
      Mihaita

On Wed, Oct 16, 2019 at 10:51 AM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>
> On 10/16/19 10:40 AM, Mihaita Ivascu wrote:
> > Hello again,
> >
> >    I have the target in otg peripheral mode, ADB and fastboot drivers
> > installed but fastboot does not list any device. The board is detected
> > in device manager
>
> Try enabling the ACM gadget in barebox and connect with PuTTY and see if
> at least that works. It worked for me on Windows with another i.MX board
> a month ago.
>
> As for fastboot, I don't know how to configure it on Windows, but surely
> Android Modding boards will have you covered there.
>
> >    Please see attachment. Any ideas how should I proceed? Thanks for
> > the support.
>
> You can enable the ACM gadget in barebox and see if that works, I tested
> it on Windows with an i.MX board a month ago
>
> Cheers
> Ahmad
>
> >
> > Thanks,
> >       Mihaita
> >
> > On Wed, Oct 16, 2019 at 9:32 AM Mihaita Ivascu
> > <mihaita_ivascu@trimble.com> wrote:
> >>
> >> Thanks. I have installed ADB and fastboot drivers for Win from
> >> https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/
> >> I have installed according to the attachment.
> >> But is not recognized in Windows. I did reboot the system after
> >> installation but did not add any new env variable.
> >>
> >> H:\>fastboot devices -l
> >> 'fastboot' is not recognized as an internal or external command,
> >> operable program or batch file.
> >>
> >> Thanks,
> >>       Mihaita
> >>
> >>
> >> On Tue, Oct 15, 2019 at 4:44 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
> >>>
> >>> On 10/15/19 4:41 PM, Mihaita Ivascu wrote:
> >>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
> >>> That's what you run on your host system, not on the target.
> >>> --
> >>> Pengutronix e.K.                           |                             |
> >>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> >>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> >>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
>
>
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-16  9:21                     ` Mihaita Ivascu
@ 2019-10-16  9:26                       ` Ahmad Fatoum
  2019-10-16  9:48                         ` Mihaita Ivascu
  0 siblings, 1 reply; 24+ messages in thread
From: Ahmad Fatoum @ 2019-10-16  9:26 UTC (permalink / raw)
  To: Mihaita Ivascu; +Cc: barebox

On 10/16/19 11:21 AM, Mihaita Ivascu wrote:
> Hello,
> 
>    Thanks for your answer. Yes i am able to connect via PUTTY to the target.
>    Then I should use some adb commands in order to push the new
> barebox/firmware ? do you know where I could find some examples?

fastboot device -l works normally on Linux. You need to check what you need
to do on Windows to do the same. You should only need the Fastboot utility
for this.

> 
>    Also I have a question: purpose of this activity is for me to be
> able to flash some imx6ul boards that have no firmware: no barebox.
>    So I know hardware config for the port is otg mode but as I have no
> barebox running them before I am wondering if I will be able to
> connect via PUTTY if I do not set the ACM gadget from barebox?

Check the Embest MarS board's environment in barebox master. It sets up
a fastboot gadget automatically on boot from imx-usb-loader.
You can adjust it to your liking.

Cheers
Ahmad

> 
> Thanks,
>       Mihaita
> 
> On Wed, Oct 16, 2019 at 10:51 AM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>>
>> On 10/16/19 10:40 AM, Mihaita Ivascu wrote:
>>> Hello again,
>>>
>>>    I have the target in otg peripheral mode, ADB and fastboot drivers
>>> installed but fastboot does not list any device. The board is detected
>>> in device manager
>>
>> Try enabling the ACM gadget in barebox and connect with PuTTY and see if
>> at least that works. It worked for me on Windows with another i.MX board
>> a month ago.
>>
>> As for fastboot, I don't know how to configure it on Windows, but surely
>> Android Modding boards will have you covered there.
>>
>>>    Please see attachment. Any ideas how should I proceed? Thanks for
>>> the support.
>>
>> You can enable the ACM gadget in barebox and see if that works, I tested
>> it on Windows with an i.MX board a month ago
>>
>> Cheers
>> Ahmad
>>
>>>
>>> Thanks,
>>>       Mihaita
>>>
>>> On Wed, Oct 16, 2019 at 9:32 AM Mihaita Ivascu
>>> <mihaita_ivascu@trimble.com> wrote:
>>>>
>>>> Thanks. I have installed ADB and fastboot drivers for Win from
>>>> https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/
>>>> I have installed according to the attachment.
>>>> But is not recognized in Windows. I did reboot the system after
>>>> installation but did not add any new env variable.
>>>>
>>>> H:\>fastboot devices -l
>>>> 'fastboot' is not recognized as an internal or external command,
>>>> operable program or batch file.
>>>>
>>>> Thanks,
>>>>       Mihaita
>>>>
>>>>
>>>> On Tue, Oct 15, 2019 at 4:44 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>>>>>
>>>>> On 10/15/19 4:41 PM, Mihaita Ivascu wrote:
>>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
>>>>> That's what you run on your host system, not on the target.
>>>>> --
>>>>> Pengutronix e.K.                           |                             |
>>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
>>
>>
>> --
>> Pengutronix e.K.                           |                             |
>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-16  9:26                       ` Ahmad Fatoum
@ 2019-10-16  9:48                         ` Mihaita Ivascu
  2019-10-16  9:53                           ` Ahmad Fatoum
  0 siblings, 1 reply; 24+ messages in thread
From: Mihaita Ivascu @ 2019-10-16  9:48 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

[-- Attachment #1: Type: text/plain, Size: 4489 bytes --]

On Wed, Oct 16, 2019 at 11:26 AM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>
> On 10/16/19 11:21 AM, Mihaita Ivascu wrote:
> > Hello,
> >
> >    Thanks for your answer. Yes i am able to connect via PUTTY to the target.
> >    Then I should use some adb commands in order to push the new
> > barebox/firmware ? do you know where I could find some examples?
>
> fastboot device -l works normally on Linux. You need to check what you need
> to do on Windows to do the same. You should only need the Fastboot utility
> for this.
>
[mi] Yes I have both fastboot and adb installed on both Windows and
Linux machines. In both cases it does not list any device.
       The board is detected as fastboot android is windows device
manager. But the fastboot and adb does not list it. same for Linux.
Please see attachment

> >
> >    Also I have a question: purpose of this activity is for me to be
> > able to flash some imx6ul boards that have no firmware: no barebox.
> >    So I know hardware config for the port is otg mode but as I have no
> > barebox running them before I am wondering if I will be able to
> > connect via PUTTY if I do not set the ACM gadget from barebox?
>
> Check the Embest MarS board's environment in barebox master. It sets up
> a fastboot gadget automatically on boot from imx-usb-loader.
> You can adjust it to your liking.

  [mi] I was not able to find any docs about this board. I will keep
searching/asking in the nxp community. If you have already ahve any
files related to it would be helpful. Thanks
>
> Cheers
> Ahmad
>
> >
> > Thanks,
> >       Mihaita
> >
> > On Wed, Oct 16, 2019 at 10:51 AM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
> >>
> >> On 10/16/19 10:40 AM, Mihaita Ivascu wrote:
> >>> Hello again,
> >>>
> >>>    I have the target in otg peripheral mode, ADB and fastboot drivers
> >>> installed but fastboot does not list any device. The board is detected
> >>> in device manager
> >>
> >> Try enabling the ACM gadget in barebox and connect with PuTTY and see if
> >> at least that works. It worked for me on Windows with another i.MX board
> >> a month ago.
> >>
> >> As for fastboot, I don't know how to configure it on Windows, but surely
> >> Android Modding boards will have you covered there.
> >>
> >>>    Please see attachment. Any ideas how should I proceed? Thanks for
> >>> the support.
> >>
> >> You can enable the ACM gadget in barebox and see if that works, I tested
> >> it on Windows with an i.MX board a month ago
> >>
> >> Cheers
> >> Ahmad
> >>
> >>>
> >>> Thanks,
> >>>       Mihaita
> >>>
> >>> On Wed, Oct 16, 2019 at 9:32 AM Mihaita Ivascu
> >>> <mihaita_ivascu@trimble.com> wrote:
> >>>>
> >>>> Thanks. I have installed ADB and fastboot drivers for Win from
> >>>> https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/
> >>>> I have installed according to the attachment.
> >>>> But is not recognized in Windows. I did reboot the system after
> >>>> installation but did not add any new env variable.
> >>>>
> >>>> H:\>fastboot devices -l
> >>>> 'fastboot' is not recognized as an internal or external command,
> >>>> operable program or batch file.
> >>>>
> >>>> Thanks,
> >>>>       Mihaita
> >>>>
> >>>>
> >>>> On Tue, Oct 15, 2019 at 4:44 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
> >>>>>
> >>>>> On 10/15/19 4:41 PM, Mihaita Ivascu wrote:
> >>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
> >>>>> That's what you run on your host system, not on the target.
> >>>>> --
> >>>>> Pengutronix e.K.                           |                             |
> >>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> >>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> >>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> >>
> >>
> >> --
> >> Pengutronix e.K.                           |                             |
> >> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> >> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> >> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> >
>
>
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

[-- Attachment #2: fastboot3.PNG --]
[-- Type: image/png, Size: 33612 bytes --]

[-- Attachment #3: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-16  9:48                         ` Mihaita Ivascu
@ 2019-10-16  9:53                           ` Ahmad Fatoum
  2019-10-16 11:32                             ` Mihaita Ivascu
       [not found]                             ` <CAEp+FuDPDra+umeaLYuLUdjuzHiV+_eB+s2pMmwij8Scp6Gd=w@mail.gmail.com>
  0 siblings, 2 replies; 24+ messages in thread
From: Ahmad Fatoum @ 2019-10-16  9:53 UTC (permalink / raw)
  To: Mihaita Ivascu; +Cc: barebox


On 10/16/19 11:48 AM, Mihaita Ivascu wrote:
> On Wed, Oct 16, 2019 at 11:26 AM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>>
>> On 10/16/19 11:21 AM, Mihaita Ivascu wrote:
>>> Hello,
>>>
>>>    Thanks for your answer. Yes i am able to connect via PUTTY to the target.
>>>    Then I should use some adb commands in order to push the new
>>> barebox/firmware ? do you know where I could find some examples?
>>
>> fastboot device -l works normally on Linux. You need to check what you need
>> to do on Windows to do the same. You should only need the Fastboot utility
>> for this.
>>
> [mi] Yes I have both fastboot and adb installed on both Windows and
> Linux machines. In both cases it does not list any device.
>        The board is detected as fastboot android is windows device
> manager. But the fastboot and adb does not list it. same for Linux.
> Please see attachment

Let's focus on Linux. You don't see a device there?
What does barebox say? Does it say 'multi_bind: creating Fastboot function'?
What does you Linux host's dmesg say?

 > 
>>>
>>>    Also I have a question: purpose of this activity is for me to be
>>> able to flash some imx6ul boards that have no firmware: no barebox.
>>>    So I know hardware config for the port is otg mode but as I have no
>>> barebox running them before I am wondering if I will be able to
>>> connect via PUTTY if I do not set the ACM gadget from barebox?
>>
>> Check the Embest MarS board's environment in barebox master. It sets up
>> a fastboot gadget automatically on boot from imx-usb-loader.
>> You can adjust it to your liking.
> 
>   [mi] I was not able to find any docs about this board. I will keep
> searching/asking in the nxp community. If you have already ahve any
> files related to it would be helpful. Thanks

It's in the barebox next branch (not master, sorry), see here:
https://github.com/saschahauer/barebox/blob/next/arch/arm/boards/embest-marsboard/defaultenv-mars/init/fastboot

You can copy and adjust the environment setup for your board. 

>>
>> Cheers
>> Ahmad
>>
>>>
>>> Thanks,
>>>       Mihaita
>>>
>>> On Wed, Oct 16, 2019 at 10:51 AM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>>>>
>>>> On 10/16/19 10:40 AM, Mihaita Ivascu wrote:
>>>>> Hello again,
>>>>>
>>>>>    I have the target in otg peripheral mode, ADB and fastboot drivers
>>>>> installed but fastboot does not list any device. The board is detected
>>>>> in device manager
>>>>
>>>> Try enabling the ACM gadget in barebox and connect with PuTTY and see if
>>>> at least that works. It worked for me on Windows with another i.MX board
>>>> a month ago.
>>>>
>>>> As for fastboot, I don't know how to configure it on Windows, but surely
>>>> Android Modding boards will have you covered there.
>>>>
>>>>>    Please see attachment. Any ideas how should I proceed? Thanks for
>>>>> the support.
>>>>
>>>> You can enable the ACM gadget in barebox and see if that works, I tested
>>>> it on Windows with an i.MX board a month ago
>>>>
>>>> Cheers
>>>> Ahmad
>>>>
>>>>>
>>>>> Thanks,
>>>>>       Mihaita
>>>>>
>>>>> On Wed, Oct 16, 2019 at 9:32 AM Mihaita Ivascu
>>>>> <mihaita_ivascu@trimble.com> wrote:
>>>>>>
>>>>>> Thanks. I have installed ADB and fastboot drivers for Win from
>>>>>> https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/
>>>>>> I have installed according to the attachment.
>>>>>> But is not recognized in Windows. I did reboot the system after
>>>>>> installation but did not add any new env variable.
>>>>>>
>>>>>> H:\>fastboot devices -l
>>>>>> 'fastboot' is not recognized as an internal or external command,
>>>>>> operable program or batch file.
>>>>>>
>>>>>> Thanks,
>>>>>>       Mihaita
>>>>>>
>>>>>>
>>>>>> On Tue, Oct 15, 2019 at 4:44 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>>>>>>>
>>>>>>> On 10/15/19 4:41 PM, Mihaita Ivascu wrote:
>>>>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
>>>>>>> That's what you run on your host system, not on the target.
>>>>>>> --
>>>>>>> Pengutronix e.K.                           |                             |
>>>>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
>>>>
>>>>
>>>> --
>>>> Pengutronix e.K.                           |                             |
>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
>>>
>>
>>
>> --
>> Pengutronix e.K.                           |                             |
>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-16  9:53                           ` Ahmad Fatoum
@ 2019-10-16 11:32                             ` Mihaita Ivascu
       [not found]                             ` <CAEp+FuDPDra+umeaLYuLUdjuzHiV+_eB+s2pMmwij8Scp6Gd=w@mail.gmail.com>
  1 sibling, 0 replies; 24+ messages in thread
From: Mihaita Ivascu @ 2019-10-16 11:32 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

On Wed, Oct 16, 2019 at 11:53 AM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>
>
> On 10/16/19 11:48 AM, Mihaita Ivascu wrote:
> > On Wed, Oct 16, 2019 at 11:26 AM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
> >>
> >> On 10/16/19 11:21 AM, Mihaita Ivascu wrote:
> >>> Hello,
> >>>
> >>>    Thanks for your answer. Yes i am able to connect via PUTTY to the target.
> >>>    Then I should use some adb commands in order to push the new
> >>> barebox/firmware ? do you know where I could find some examples?
> >>
> >> fastboot device -l works normally on Linux. You need to check what you need
> >> to do on Windows to do the same. You should only need the Fastboot utility
> >> for this.
> >>
> > [mi] Yes I have both fastboot and adb installed on both Windows and
> > Linux machines. In both cases it does not list any device.
> >        The board is detected as fastboot android is windows device
> > manager. But the fastboot and adb does not list it. same for Linux.
> > Please see attachment
>
> Let's focus on Linux. You don't see a device there?
> What does barebox say? Does it say 'multi_bind: creating Fastboot function'?
> What does you Linux host's dmesg say?


barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ usbgadget -aA
udc0: registering UDC driver [g_multi]
multi_bind: creating Fastboot function
multi_bind: creating ACM function
g_multi usbgadget: Multifunction Composite Gadget
g_multi usbgadget: userspace failed to provide iSerialNumber
g_multi usbgadget: g_multi ready
barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ g_multi usbgadget:
high-speed config #1: Multifunction Composite Gadget

dmesg:

[   25.602275] usb 1-1.3: USB disconnect, device number 3
[   28.359930] usb 1-1.3: new high-speed USB device number 5 using ehci-pci
[   28.452971] usb 1-1.3: New USB device found, idVendor=1d6b, idProduct=0104
[   28.452976] usb 1-1.3: New USB device strings: Mfr=0, Product=2,
SerialNumber=0
[   28.452980] usb 1-1.3: Product: Phytec phyCORE-i.MX6 Ultra Lite SOM
[   28.457925] cdc_acm 1-1.3:1.1: ttyACM0: USB ACM device


So I see the device on Linux. But fastboot does not list any device on Linux.


>
>
>  >
> >>>
> >>>    Also I have a question: purpose of this activity is for me to be
> >>> able to flash some imx6ul boards that have no firmware: no barebox.
> >>>    So I know hardware config for the port is otg mode but as I have no
> >>> barebox running them before I am wondering if I will be able to
> >>> connect via PUTTY if I do not set the ACM gadget from barebox?
> >>
> >> Check the Embest MarS board's environment in barebox master. It sets up
> >> a fastboot gadget automatically on boot from imx-usb-loader.
> >> You can adjust it to your liking.
> >
> >   [mi] I was not able to find any docs about this board. I will keep
> > searching/asking in the nxp community. If you have already ahve any
> > files related to it would be helpful. Thanks
>
> It's in the barebox next branch (not master, sorry), see here:
> https://github.com/saschahauer/barebox/blob/next/arch/arm/boards/embest-marsboard/defaultenv-mars/init/fastboot
>
> You can copy and adjust the environment setup for your board.
>
> >>
> >> Cheers
> >> Ahmad
> >>
> >>>
> >>> Thanks,
> >>>       Mihaita
> >>>
> >>> On Wed, Oct 16, 2019 at 10:51 AM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
> >>>>
> >>>> On 10/16/19 10:40 AM, Mihaita Ivascu wrote:
> >>>>> Hello again,
> >>>>>
> >>>>>    I have the target in otg peripheral mode, ADB and fastboot drivers
> >>>>> installed but fastboot does not list any device. The board is detected
> >>>>> in device manager
> >>>>
> >>>> Try enabling the ACM gadget in barebox and connect with PuTTY and see if
> >>>> at least that works. It worked for me on Windows with another i.MX board
> >>>> a month ago.
> >>>>
> >>>> As for fastboot, I don't know how to configure it on Windows, but surely
> >>>> Android Modding boards will have you covered there.
> >>>>
> >>>>>    Please see attachment. Any ideas how should I proceed? Thanks for
> >>>>> the support.
> >>>>
> >>>> You can enable the ACM gadget in barebox and see if that works, I tested
> >>>> it on Windows with an i.MX board a month ago
> >>>>
> >>>> Cheers
> >>>> Ahmad
> >>>>
> >>>>>
> >>>>> Thanks,
> >>>>>       Mihaita
> >>>>>
> >>>>> On Wed, Oct 16, 2019 at 9:32 AM Mihaita Ivascu
> >>>>> <mihaita_ivascu@trimble.com> wrote:
> >>>>>>
> >>>>>> Thanks. I have installed ADB and fastboot drivers for Win from
> >>>>>> https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/
> >>>>>> I have installed according to the attachment.
> >>>>>> But is not recognized in Windows. I did reboot the system after
> >>>>>> installation but did not add any new env variable.
> >>>>>>
> >>>>>> H:\>fastboot devices -l
> >>>>>> 'fastboot' is not recognized as an internal or external command,
> >>>>>> operable program or batch file.
> >>>>>>
> >>>>>> Thanks,
> >>>>>>       Mihaita
> >>>>>>
> >>>>>>
> >>>>>> On Tue, Oct 15, 2019 at 4:44 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
> >>>>>>>
> >>>>>>> On 10/15/19 4:41 PM, Mihaita Ivascu wrote:
> >>>>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
> >>>>>>> That's what you run on your host system, not on the target.
> >>>>>>> --
> >>>>>>> Pengutronix e.K.                           |                             |
> >>>>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> >>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> >>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> >>>>
> >>>>
> >>>> --
> >>>> Pengutronix e.K.                           |                             |
> >>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> >>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> >>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> >>>
> >>
> >>
> >> --
> >> Pengutronix e.K.                           |                             |
> >> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> >> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> >> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
>
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
       [not found]                             ` <CAEp+FuDPDra+umeaLYuLUdjuzHiV+_eB+s2pMmwij8Scp6Gd=w@mail.gmail.com>
@ 2019-10-16 11:36                               ` Ahmad Fatoum
  2019-10-16 12:35                                 ` Mihaita Ivascu
  0 siblings, 1 reply; 24+ messages in thread
From: Ahmad Fatoum @ 2019-10-16 11:36 UTC (permalink / raw)
  To: Mihaita Ivascu; +Cc: barebox

On 10/16/19 1:28 PM, Mihaita Ivascu wrote:
> On Wed, Oct 16, 2019 at 11:53 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
> wrote:
>>
>>
>> On 10/16/19 11:48 AM, Mihaita Ivascu wrote:
>>> On Wed, Oct 16, 2019 at 11:26 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
> wrote:
>>>>
>>>> On 10/16/19 11:21 AM, Mihaita Ivascu wrote:
>>>>> Hello,
>>>>>
>>>>>    Thanks for your answer. Yes i am able to connect via PUTTY to the
> target.
>>>>>    Then I should use some adb commands in order to push the new
>>>>> barebox/firmware ? do you know where I could find some examples?
>>>>
>>>> fastboot device -l works normally on Linux. You need to check what you
> need
>>>> to do on Windows to do the same. You should only need the Fastboot
> utility
>>>> for this.
>>>>
>>> [mi] Yes I have both fastboot and adb installed on both Windows and
>>> Linux machines. In both cases it does not list any device.
>>>        The board is detected as fastboot android is windows device
>>> manager. But the fastboot and adb does not list it. same for Linux.
>>> Please see attachment
>>
>> Let's focus on Linux. You don't see a device there?
>> What does barebox say? Does it say 'multi_bind: creating Fastboot
> function'?
>> What does you Linux host's dmesg say?
>>
> 
> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ usbgadget -aA
> udc0: registering UDC driver [g_multi]
> multi_bind: creating Fastboot function
> multi_bind: creating ACM function
> g_multi usbgadget: Multifunction Composite Gadget
> g_multi usbgadget: userspace failed to provide iSerialNumber
> g_multi usbgadget: g_multi ready
> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ g_multi usbgadget: high-speed
> config #1: Multifunction Composite Gadget
> 
> dmesg:
> 
> [   25.602275] usb 1-1.3: USB disconnect, device number 3
> [   28.359930] usb 1-1.3: new high-speed USB device number 5 using ehci-pci
> [   28.452971] usb 1-1.3: New USB device found, idVendor=1d6b,
> idProduct=0104
> [   28.452976] usb 1-1.3: New USB device strings: Mfr=0, Product=2,
> SerialNumber=0
> [   28.452980] usb 1-1.3: Product: Phytec phyCORE-i.MX6 Ultra Lite SOM
> [   28.457925] cdc_acm 1-1.3:1.1: ttyACM0: USB ACM device
> 
> 
> So I see the device on Linux. But fastboot does not list any device on
> Linux.

sudo doesn't change this?

> 
>>  >
>>>>>
>>>>>    Also I have a question: purpose of this activity is for me to be
>>>>> able to flash some imx6ul boards that have no firmware: no barebox.
>>>>>    So I know hardware config for the port is otg mode but as I have no
>>>>> barebox running them before I am wondering if I will be able to
>>>>> connect via PUTTY if I do not set the ACM gadget from barebox?
>>>>
>>>> Check the Embest MarS board's environment in barebox master. It sets up
>>>> a fastboot gadget automatically on boot from imx-usb-loader.
>>>> You can adjust it to your liking.
>>>
>>>   [mi] I was not able to find any docs about this board. I will keep
>>> searching/asking in the nxp community. If you have already ahve any
>>> files related to it would be helpful. Thanks
>>
>> It's in the barebox next branch (not master, sorry), see here:
>>
> https://github.com/saschahauer/barebox/blob/next/arch/arm/boards/embest-marsboard/defaultenv-mars/init/fastboot
>>
>> You can copy and adjust the environment setup for your board.
>>
>>>>
>>>> Cheers
>>>> Ahmad
>>>>
>>>>>
>>>>> Thanks,
>>>>>       Mihaita
>>>>>
>>>>> On Wed, Oct 16, 2019 at 10:51 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
> wrote:
>>>>>>
>>>>>> On 10/16/19 10:40 AM, Mihaita Ivascu wrote:
>>>>>>> Hello again,
>>>>>>>
>>>>>>>    I have the target in otg peripheral mode, ADB and fastboot
> drivers
>>>>>>> installed but fastboot does not list any device. The board is
> detected
>>>>>>> in device manager
>>>>>>
>>>>>> Try enabling the ACM gadget in barebox and connect with PuTTY and
> see if
>>>>>> at least that works. It worked for me on Windows with another i.MX
> board
>>>>>> a month ago.
>>>>>>
>>>>>> As for fastboot, I don't know how to configure it on Windows, but
> surely
>>>>>> Android Modding boards will have you covered there.
>>>>>>
>>>>>>>    Please see attachment. Any ideas how should I proceed? Thanks for
>>>>>>> the support.
>>>>>>
>>>>>> You can enable the ACM gadget in barebox and see if that works, I
> tested
>>>>>> it on Windows with an i.MX board a month ago
>>>>>>
>>>>>> Cheers
>>>>>> Ahmad
>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>>       Mihaita
>>>>>>>
>>>>>>> On Wed, Oct 16, 2019 at 9:32 AM Mihaita Ivascu
>>>>>>> <mihaita_ivascu@trimble.com> wrote:
>>>>>>>>
>>>>>>>> Thanks. I have installed ADB and fastboot drivers for Win from
>>>>>>>>
> https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/
>>>>>>>> I have installed according to the attachment.
>>>>>>>> But is not recognized in Windows. I did reboot the system after
>>>>>>>> installation but did not add any new env variable.
>>>>>>>>
>>>>>>>> H:\>fastboot devices -l
>>>>>>>> 'fastboot' is not recognized as an internal or external command,
>>>>>>>> operable program or batch file.
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>>       Mihaita
>>>>>>>>
>>>>>>>>
>>>>>>>> On Tue, Oct 15, 2019 at 4:44 PM Ahmad Fatoum <
> a.fatoum@pengutronix.de> wrote:
>>>>>>>>>
>>>>>>>>> On 10/15/19 4:41 PM, Mihaita Ivascu wrote:
>>>>>>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
>>>>>>>>> That's what you run on your host system, not on the target.
>>>>>>>>> --
>>>>>>>>> Pengutronix e.K.                           |
>         |
>>>>>>>>> Industrial Linux Solutions                 |
> http://www.pengutronix.de/  |
>>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone:
> +49-5121-206917-0    |
>>>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
> +49-5121-206917-5555 |
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Pengutronix e.K.                           |
>     |
>>>>>> Industrial Linux Solutions                 |
> http://www.pengutronix.de/  |
>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone:
> +49-5121-206917-0    |
>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
> +49-5121-206917-5555 |
>>>>>
>>>>
>>>>
>>>> --
>>>> Pengutronix e.K.                           |
>   |
>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/
>  |
>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0
>    |
>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
> +49-5121-206917-5555 |
>>
>> --
>> Pengutronix e.K.                           |                             |
>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-16 11:36                               ` Ahmad Fatoum
@ 2019-10-16 12:35                                 ` Mihaita Ivascu
  2019-10-16 12:41                                   ` Ahmad Fatoum
  0 siblings, 1 reply; 24+ messages in thread
From: Mihaita Ivascu @ 2019-10-16 12:35 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

No it does not. Still no devices listed.

Thanks,
      Mihaita

On Wed, Oct 16, 2019 at 1:36 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>
> On 10/16/19 1:28 PM, Mihaita Ivascu wrote:
> > On Wed, Oct 16, 2019 at 11:53 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
> > wrote:
> >>
> >>
> >> On 10/16/19 11:48 AM, Mihaita Ivascu wrote:
> >>> On Wed, Oct 16, 2019 at 11:26 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
> > wrote:
> >>>>
> >>>> On 10/16/19 11:21 AM, Mihaita Ivascu wrote:
> >>>>> Hello,
> >>>>>
> >>>>>    Thanks for your answer. Yes i am able to connect via PUTTY to the
> > target.
> >>>>>    Then I should use some adb commands in order to push the new
> >>>>> barebox/firmware ? do you know where I could find some examples?
> >>>>
> >>>> fastboot device -l works normally on Linux. You need to check what you
> > need
> >>>> to do on Windows to do the same. You should only need the Fastboot
> > utility
> >>>> for this.
> >>>>
> >>> [mi] Yes I have both fastboot and adb installed on both Windows and
> >>> Linux machines. In both cases it does not list any device.
> >>>        The board is detected as fastboot android is windows device
> >>> manager. But the fastboot and adb does not list it. same for Linux.
> >>> Please see attachment
> >>
> >> Let's focus on Linux. You don't see a device there?
> >> What does barebox say? Does it say 'multi_bind: creating Fastboot
> > function'?
> >> What does you Linux host's dmesg say?
> >>
> >
> > barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ usbgadget -aA
> > udc0: registering UDC driver [g_multi]
> > multi_bind: creating Fastboot function
> > multi_bind: creating ACM function
> > g_multi usbgadget: Multifunction Composite Gadget
> > g_multi usbgadget: userspace failed to provide iSerialNumber
> > g_multi usbgadget: g_multi ready
> > barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ g_multi usbgadget: high-speed
> > config #1: Multifunction Composite Gadget
> >
> > dmesg:
> >
> > [   25.602275] usb 1-1.3: USB disconnect, device number 3
> > [   28.359930] usb 1-1.3: new high-speed USB device number 5 using ehci-pci
> > [   28.452971] usb 1-1.3: New USB device found, idVendor=1d6b,
> > idProduct=0104
> > [   28.452976] usb 1-1.3: New USB device strings: Mfr=0, Product=2,
> > SerialNumber=0
> > [   28.452980] usb 1-1.3: Product: Phytec phyCORE-i.MX6 Ultra Lite SOM
> > [   28.457925] cdc_acm 1-1.3:1.1: ttyACM0: USB ACM device
> >
> >
> > So I see the device on Linux. But fastboot does not list any device on
> > Linux.
>
> sudo doesn't change this?
>
> >
> >>  >
> >>>>>
> >>>>>    Also I have a question: purpose of this activity is for me to be
> >>>>> able to flash some imx6ul boards that have no firmware: no barebox.
> >>>>>    So I know hardware config for the port is otg mode but as I have no
> >>>>> barebox running them before I am wondering if I will be able to
> >>>>> connect via PUTTY if I do not set the ACM gadget from barebox?
> >>>>
> >>>> Check the Embest MarS board's environment in barebox master. It sets up
> >>>> a fastboot gadget automatically on boot from imx-usb-loader.
> >>>> You can adjust it to your liking.
> >>>
> >>>   [mi] I was not able to find any docs about this board. I will keep
> >>> searching/asking in the nxp community. If you have already ahve any
> >>> files related to it would be helpful. Thanks
> >>
> >> It's in the barebox next branch (not master, sorry), see here:
> >>
> > https://github.com/saschahauer/barebox/blob/next/arch/arm/boards/embest-marsboard/defaultenv-mars/init/fastboot
> >>
> >> You can copy and adjust the environment setup for your board.
> >>
> >>>>
> >>>> Cheers
> >>>> Ahmad
> >>>>
> >>>>>
> >>>>> Thanks,
> >>>>>       Mihaita
> >>>>>
> >>>>> On Wed, Oct 16, 2019 at 10:51 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
> > wrote:
> >>>>>>
> >>>>>> On 10/16/19 10:40 AM, Mihaita Ivascu wrote:
> >>>>>>> Hello again,
> >>>>>>>
> >>>>>>>    I have the target in otg peripheral mode, ADB and fastboot
> > drivers
> >>>>>>> installed but fastboot does not list any device. The board is
> > detected
> >>>>>>> in device manager
> >>>>>>
> >>>>>> Try enabling the ACM gadget in barebox and connect with PuTTY and
> > see if
> >>>>>> at least that works. It worked for me on Windows with another i.MX
> > board
> >>>>>> a month ago.
> >>>>>>
> >>>>>> As for fastboot, I don't know how to configure it on Windows, but
> > surely
> >>>>>> Android Modding boards will have you covered there.
> >>>>>>
> >>>>>>>    Please see attachment. Any ideas how should I proceed? Thanks for
> >>>>>>> the support.
> >>>>>>
> >>>>>> You can enable the ACM gadget in barebox and see if that works, I
> > tested
> >>>>>> it on Windows with an i.MX board a month ago
> >>>>>>
> >>>>>> Cheers
> >>>>>> Ahmad
> >>>>>>
> >>>>>>>
> >>>>>>> Thanks,
> >>>>>>>       Mihaita
> >>>>>>>
> >>>>>>> On Wed, Oct 16, 2019 at 9:32 AM Mihaita Ivascu
> >>>>>>> <mihaita_ivascu@trimble.com> wrote:
> >>>>>>>>
> >>>>>>>> Thanks. I have installed ADB and fastboot drivers for Win from
> >>>>>>>>
> > https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/
> >>>>>>>> I have installed according to the attachment.
> >>>>>>>> But is not recognized in Windows. I did reboot the system after
> >>>>>>>> installation but did not add any new env variable.
> >>>>>>>>
> >>>>>>>> H:\>fastboot devices -l
> >>>>>>>> 'fastboot' is not recognized as an internal or external command,
> >>>>>>>> operable program or batch file.
> >>>>>>>>
> >>>>>>>> Thanks,
> >>>>>>>>       Mihaita
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> On Tue, Oct 15, 2019 at 4:44 PM Ahmad Fatoum <
> > a.fatoum@pengutronix.de> wrote:
> >>>>>>>>>
> >>>>>>>>> On 10/15/19 4:41 PM, Mihaita Ivascu wrote:
> >>>>>>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
> >>>>>>>>> That's what you run on your host system, not on the target.
> >>>>>>>>> --
> >>>>>>>>> Pengutronix e.K.                           |
> >         |
> >>>>>>>>> Industrial Linux Solutions                 |
> > http://www.pengutronix.de/  |
> >>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone:
> > +49-5121-206917-0    |
> >>>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
> > +49-5121-206917-5555 |
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> Pengutronix e.K.                           |
> >     |
> >>>>>> Industrial Linux Solutions                 |
> > http://www.pengutronix.de/  |
> >>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone:
> > +49-5121-206917-0    |
> >>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
> > +49-5121-206917-5555 |
> >>>>>
> >>>>
> >>>>
> >>>> --
> >>>> Pengutronix e.K.                           |
> >   |
> >>>> Industrial Linux Solutions                 | http://www.pengutronix.de/
> >  |
> >>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0
> >    |
> >>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
> > +49-5121-206917-5555 |
> >>
> >> --
> >> Pengutronix e.K.                           |                             |
> >> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> >> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> >> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> >
>
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-16 12:35                                 ` Mihaita Ivascu
@ 2019-10-16 12:41                                   ` Ahmad Fatoum
  2019-10-16 12:44                                     ` Mihaita Ivascu
  0 siblings, 1 reply; 24+ messages in thread
From: Ahmad Fatoum @ 2019-10-16 12:41 UTC (permalink / raw)
  To: Mihaita Ivascu; +Cc: barebox

On 10/16/19 2:35 PM, Mihaita Ivascu wrote:
> No it does not. Still no devices listed.

Strange. What barebox version?

> 
> Thanks,
>       Mihaita
> 
> On Wed, Oct 16, 2019 at 1:36 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>>
>> On 10/16/19 1:28 PM, Mihaita Ivascu wrote:
>>> On Wed, Oct 16, 2019 at 11:53 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
>>> wrote:
>>>>
>>>>
>>>> On 10/16/19 11:48 AM, Mihaita Ivascu wrote:
>>>>> On Wed, Oct 16, 2019 at 11:26 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
>>> wrote:
>>>>>>
>>>>>> On 10/16/19 11:21 AM, Mihaita Ivascu wrote:
>>>>>>> Hello,
>>>>>>>
>>>>>>>    Thanks for your answer. Yes i am able to connect via PUTTY to the
>>> target.
>>>>>>>    Then I should use some adb commands in order to push the new
>>>>>>> barebox/firmware ? do you know where I could find some examples?
>>>>>>
>>>>>> fastboot device -l works normally on Linux. You need to check what you
>>> need
>>>>>> to do on Windows to do the same. You should only need the Fastboot
>>> utility
>>>>>> for this.
>>>>>>
>>>>> [mi] Yes I have both fastboot and adb installed on both Windows and
>>>>> Linux machines. In both cases it does not list any device.
>>>>>        The board is detected as fastboot android is windows device
>>>>> manager. But the fastboot and adb does not list it. same for Linux.
>>>>> Please see attachment
>>>>
>>>> Let's focus on Linux. You don't see a device there?
>>>> What does barebox say? Does it say 'multi_bind: creating Fastboot
>>> function'?
>>>> What does you Linux host's dmesg say?
>>>>
>>>
>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ usbgadget -aA
>>> udc0: registering UDC driver [g_multi]
>>> multi_bind: creating Fastboot function
>>> multi_bind: creating ACM function
>>> g_multi usbgadget: Multifunction Composite Gadget
>>> g_multi usbgadget: userspace failed to provide iSerialNumber
>>> g_multi usbgadget: g_multi ready
>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ g_multi usbgadget: high-speed
>>> config #1: Multifunction Composite Gadget
>>>
>>> dmesg:
>>>
>>> [   25.602275] usb 1-1.3: USB disconnect, device number 3
>>> [   28.359930] usb 1-1.3: new high-speed USB device number 5 using ehci-pci
>>> [   28.452971] usb 1-1.3: New USB device found, idVendor=1d6b,
>>> idProduct=0104
>>> [   28.452976] usb 1-1.3: New USB device strings: Mfr=0, Product=2,
>>> SerialNumber=0
>>> [   28.452980] usb 1-1.3: Product: Phytec phyCORE-i.MX6 Ultra Lite SOM
>>> [   28.457925] cdc_acm 1-1.3:1.1: ttyACM0: USB ACM device
>>>
>>>
>>> So I see the device on Linux. But fastboot does not list any device on
>>> Linux.
>>
>> sudo doesn't change this?
>>
>>>
>>>>  >
>>>>>>>
>>>>>>>    Also I have a question: purpose of this activity is for me to be
>>>>>>> able to flash some imx6ul boards that have no firmware: no barebox.
>>>>>>>    So I know hardware config for the port is otg mode but as I have no
>>>>>>> barebox running them before I am wondering if I will be able to
>>>>>>> connect via PUTTY if I do not set the ACM gadget from barebox?
>>>>>>
>>>>>> Check the Embest MarS board's environment in barebox master. It sets up
>>>>>> a fastboot gadget automatically on boot from imx-usb-loader.
>>>>>> You can adjust it to your liking.
>>>>>
>>>>>   [mi] I was not able to find any docs about this board. I will keep
>>>>> searching/asking in the nxp community. If you have already ahve any
>>>>> files related to it would be helpful. Thanks
>>>>
>>>> It's in the barebox next branch (not master, sorry), see here:
>>>>
>>> https://github.com/saschahauer/barebox/blob/next/arch/arm/boards/embest-marsboard/defaultenv-mars/init/fastboot
>>>>
>>>> You can copy and adjust the environment setup for your board.
>>>>
>>>>>>
>>>>>> Cheers
>>>>>> Ahmad
>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>>       Mihaita
>>>>>>>
>>>>>>> On Wed, Oct 16, 2019 at 10:51 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
>>> wrote:
>>>>>>>>
>>>>>>>> On 10/16/19 10:40 AM, Mihaita Ivascu wrote:
>>>>>>>>> Hello again,
>>>>>>>>>
>>>>>>>>>    I have the target in otg peripheral mode, ADB and fastboot
>>> drivers
>>>>>>>>> installed but fastboot does not list any device. The board is
>>> detected
>>>>>>>>> in device manager
>>>>>>>>
>>>>>>>> Try enabling the ACM gadget in barebox and connect with PuTTY and
>>> see if
>>>>>>>> at least that works. It worked for me on Windows with another i.MX
>>> board
>>>>>>>> a month ago.
>>>>>>>>
>>>>>>>> As for fastboot, I don't know how to configure it on Windows, but
>>> surely
>>>>>>>> Android Modding boards will have you covered there.
>>>>>>>>
>>>>>>>>>    Please see attachment. Any ideas how should I proceed? Thanks for
>>>>>>>>> the support.
>>>>>>>>
>>>>>>>> You can enable the ACM gadget in barebox and see if that works, I
>>> tested
>>>>>>>> it on Windows with an i.MX board a month ago
>>>>>>>>
>>>>>>>> Cheers
>>>>>>>> Ahmad
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>>       Mihaita
>>>>>>>>>
>>>>>>>>> On Wed, Oct 16, 2019 at 9:32 AM Mihaita Ivascu
>>>>>>>>> <mihaita_ivascu@trimble.com> wrote:
>>>>>>>>>>
>>>>>>>>>> Thanks. I have installed ADB and fastboot drivers for Win from
>>>>>>>>>>
>>> https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/
>>>>>>>>>> I have installed according to the attachment.
>>>>>>>>>> But is not recognized in Windows. I did reboot the system after
>>>>>>>>>> installation but did not add any new env variable.
>>>>>>>>>>
>>>>>>>>>> H:\>fastboot devices -l
>>>>>>>>>> 'fastboot' is not recognized as an internal or external command,
>>>>>>>>>> operable program or batch file.
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>>       Mihaita
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Tue, Oct 15, 2019 at 4:44 PM Ahmad Fatoum <
>>> a.fatoum@pengutronix.de> wrote:
>>>>>>>>>>>
>>>>>>>>>>> On 10/15/19 4:41 PM, Mihaita Ivascu wrote:
>>>>>>>>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
>>>>>>>>>>> That's what you run on your host system, not on the target.
>>>>>>>>>>> --
>>>>>>>>>>> Pengutronix e.K.                           |
>>>         |
>>>>>>>>>>> Industrial Linux Solutions                 |
>>> http://www.pengutronix.de/  |
>>>>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone:
>>> +49-5121-206917-0    |
>>>>>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
>>> +49-5121-206917-5555 |
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Pengutronix e.K.                           |
>>>     |
>>>>>>>> Industrial Linux Solutions                 |
>>> http://www.pengutronix.de/  |
>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone:
>>> +49-5121-206917-0    |
>>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
>>> +49-5121-206917-5555 |
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Pengutronix e.K.                           |
>>>   |
>>>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/
>>>  |
>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0
>>>    |
>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
>>> +49-5121-206917-5555 |
>>>>
>>>> --
>>>> Pengutronix e.K.                           |                             |
>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
>>>
>>
>> --
>> Pengutronix e.K.                           |                             |
>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-16 12:41                                   ` Ahmad Fatoum
@ 2019-10-16 12:44                                     ` Mihaita Ivascu
  2019-10-16 12:45                                       ` Ahmad Fatoum
  0 siblings, 1 reply; 24+ messages in thread
From: Mihaita Ivascu @ 2019-10-16 12:44 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

2018.04.0

On Wed, Oct 16, 2019 at 2:41 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>
> On 10/16/19 2:35 PM, Mihaita Ivascu wrote:
> > No it does not. Still no devices listed.
>
> Strange. What barebox version?
>
> >
> > Thanks,
> >       Mihaita
> >
> > On Wed, Oct 16, 2019 at 1:36 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
> >>
> >> On 10/16/19 1:28 PM, Mihaita Ivascu wrote:
> >>> On Wed, Oct 16, 2019 at 11:53 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
> >>> wrote:
> >>>>
> >>>>
> >>>> On 10/16/19 11:48 AM, Mihaita Ivascu wrote:
> >>>>> On Wed, Oct 16, 2019 at 11:26 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
> >>> wrote:
> >>>>>>
> >>>>>> On 10/16/19 11:21 AM, Mihaita Ivascu wrote:
> >>>>>>> Hello,
> >>>>>>>
> >>>>>>>    Thanks for your answer. Yes i am able to connect via PUTTY to the
> >>> target.
> >>>>>>>    Then I should use some adb commands in order to push the new
> >>>>>>> barebox/firmware ? do you know where I could find some examples?
> >>>>>>
> >>>>>> fastboot device -l works normally on Linux. You need to check what you
> >>> need
> >>>>>> to do on Windows to do the same. You should only need the Fastboot
> >>> utility
> >>>>>> for this.
> >>>>>>
> >>>>> [mi] Yes I have both fastboot and adb installed on both Windows and
> >>>>> Linux machines. In both cases it does not list any device.
> >>>>>        The board is detected as fastboot android is windows device
> >>>>> manager. But the fastboot and adb does not list it. same for Linux.
> >>>>> Please see attachment
> >>>>
> >>>> Let's focus on Linux. You don't see a device there?
> >>>> What does barebox say? Does it say 'multi_bind: creating Fastboot
> >>> function'?
> >>>> What does you Linux host's dmesg say?
> >>>>
> >>>
> >>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ usbgadget -aA
> >>> udc0: registering UDC driver [g_multi]
> >>> multi_bind: creating Fastboot function
> >>> multi_bind: creating ACM function
> >>> g_multi usbgadget: Multifunction Composite Gadget
> >>> g_multi usbgadget: userspace failed to provide iSerialNumber
> >>> g_multi usbgadget: g_multi ready
> >>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ g_multi usbgadget: high-speed
> >>> config #1: Multifunction Composite Gadget
> >>>
> >>> dmesg:
> >>>
> >>> [   25.602275] usb 1-1.3: USB disconnect, device number 3
> >>> [   28.359930] usb 1-1.3: new high-speed USB device number 5 using ehci-pci
> >>> [   28.452971] usb 1-1.3: New USB device found, idVendor=1d6b,
> >>> idProduct=0104
> >>> [   28.452976] usb 1-1.3: New USB device strings: Mfr=0, Product=2,
> >>> SerialNumber=0
> >>> [   28.452980] usb 1-1.3: Product: Phytec phyCORE-i.MX6 Ultra Lite SOM
> >>> [   28.457925] cdc_acm 1-1.3:1.1: ttyACM0: USB ACM device
> >>>
> >>>
> >>> So I see the device on Linux. But fastboot does not list any device on
> >>> Linux.
> >>
> >> sudo doesn't change this?
> >>
> >>>
> >>>>  >
> >>>>>>>
> >>>>>>>    Also I have a question: purpose of this activity is for me to be
> >>>>>>> able to flash some imx6ul boards that have no firmware: no barebox.
> >>>>>>>    So I know hardware config for the port is otg mode but as I have no
> >>>>>>> barebox running them before I am wondering if I will be able to
> >>>>>>> connect via PUTTY if I do not set the ACM gadget from barebox?
> >>>>>>
> >>>>>> Check the Embest MarS board's environment in barebox master. It sets up
> >>>>>> a fastboot gadget automatically on boot from imx-usb-loader.
> >>>>>> You can adjust it to your liking.
> >>>>>
> >>>>>   [mi] I was not able to find any docs about this board. I will keep
> >>>>> searching/asking in the nxp community. If you have already ahve any
> >>>>> files related to it would be helpful. Thanks
> >>>>
> >>>> It's in the barebox next branch (not master, sorry), see here:
> >>>>
> >>> https://github.com/saschahauer/barebox/blob/next/arch/arm/boards/embest-marsboard/defaultenv-mars/init/fastboot
> >>>>
> >>>> You can copy and adjust the environment setup for your board.
> >>>>
> >>>>>>
> >>>>>> Cheers
> >>>>>> Ahmad
> >>>>>>
> >>>>>>>
> >>>>>>> Thanks,
> >>>>>>>       Mihaita
> >>>>>>>
> >>>>>>> On Wed, Oct 16, 2019 at 10:51 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
> >>> wrote:
> >>>>>>>>
> >>>>>>>> On 10/16/19 10:40 AM, Mihaita Ivascu wrote:
> >>>>>>>>> Hello again,
> >>>>>>>>>
> >>>>>>>>>    I have the target in otg peripheral mode, ADB and fastboot
> >>> drivers
> >>>>>>>>> installed but fastboot does not list any device. The board is
> >>> detected
> >>>>>>>>> in device manager
> >>>>>>>>
> >>>>>>>> Try enabling the ACM gadget in barebox and connect with PuTTY and
> >>> see if
> >>>>>>>> at least that works. It worked for me on Windows with another i.MX
> >>> board
> >>>>>>>> a month ago.
> >>>>>>>>
> >>>>>>>> As for fastboot, I don't know how to configure it on Windows, but
> >>> surely
> >>>>>>>> Android Modding boards will have you covered there.
> >>>>>>>>
> >>>>>>>>>    Please see attachment. Any ideas how should I proceed? Thanks for
> >>>>>>>>> the support.
> >>>>>>>>
> >>>>>>>> You can enable the ACM gadget in barebox and see if that works, I
> >>> tested
> >>>>>>>> it on Windows with an i.MX board a month ago
> >>>>>>>>
> >>>>>>>> Cheers
> >>>>>>>> Ahmad
> >>>>>>>>
> >>>>>>>>>
> >>>>>>>>> Thanks,
> >>>>>>>>>       Mihaita
> >>>>>>>>>
> >>>>>>>>> On Wed, Oct 16, 2019 at 9:32 AM Mihaita Ivascu
> >>>>>>>>> <mihaita_ivascu@trimble.com> wrote:
> >>>>>>>>>>
> >>>>>>>>>> Thanks. I have installed ADB and fastboot drivers for Win from
> >>>>>>>>>>
> >>> https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/
> >>>>>>>>>> I have installed according to the attachment.
> >>>>>>>>>> But is not recognized in Windows. I did reboot the system after
> >>>>>>>>>> installation but did not add any new env variable.
> >>>>>>>>>>
> >>>>>>>>>> H:\>fastboot devices -l
> >>>>>>>>>> 'fastboot' is not recognized as an internal or external command,
> >>>>>>>>>> operable program or batch file.
> >>>>>>>>>>
> >>>>>>>>>> Thanks,
> >>>>>>>>>>       Mihaita
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> On Tue, Oct 15, 2019 at 4:44 PM Ahmad Fatoum <
> >>> a.fatoum@pengutronix.de> wrote:
> >>>>>>>>>>>
> >>>>>>>>>>> On 10/15/19 4:41 PM, Mihaita Ivascu wrote:
> >>>>>>>>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
> >>>>>>>>>>> That's what you run on your host system, not on the target.
> >>>>>>>>>>> --
> >>>>>>>>>>> Pengutronix e.K.                           |
> >>>         |
> >>>>>>>>>>> Industrial Linux Solutions                 |
> >>> http://www.pengutronix.de/  |
> >>>>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone:
> >>> +49-5121-206917-0    |
> >>>>>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
> >>> +49-5121-206917-5555 |
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> --
> >>>>>>>> Pengutronix e.K.                           |
> >>>     |
> >>>>>>>> Industrial Linux Solutions                 |
> >>> http://www.pengutronix.de/  |
> >>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone:
> >>> +49-5121-206917-0    |
> >>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
> >>> +49-5121-206917-5555 |
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> Pengutronix e.K.                           |
> >>>   |
> >>>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/
> >>>  |
> >>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0
> >>>    |
> >>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
> >>> +49-5121-206917-5555 |
> >>>>
> >>>> --
> >>>> Pengutronix e.K.                           |                             |
> >>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> >>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> >>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> >>>
> >>
> >> --
> >> Pengutronix e.K.                           |                             |
> >> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> >> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> >> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> >
>
>
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-16 12:44                                     ` Mihaita Ivascu
@ 2019-10-16 12:45                                       ` Ahmad Fatoum
  2019-10-17  8:40                                         ` Mihaita Ivascu
  0 siblings, 1 reply; 24+ messages in thread
From: Ahmad Fatoum @ 2019-10-16 12:45 UTC (permalink / raw)
  To: Mihaita Ivascu; +Cc: barebox

On 10/16/19 2:44 PM, Mihaita Ivascu wrote:
> 2018.04.0

I've v2019.09.0 and did the same steps you described and it works for me.
Can you try with a newer version?

> 
> On Wed, Oct 16, 2019 at 2:41 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>>
>> On 10/16/19 2:35 PM, Mihaita Ivascu wrote:
>>> No it does not. Still no devices listed.
>>
>> Strange. What barebox version?
>>
>>>
>>> Thanks,
>>>       Mihaita
>>>
>>> On Wed, Oct 16, 2019 at 1:36 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>>>>
>>>> On 10/16/19 1:28 PM, Mihaita Ivascu wrote:
>>>>> On Wed, Oct 16, 2019 at 11:53 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
>>>>> wrote:
>>>>>>
>>>>>>
>>>>>> On 10/16/19 11:48 AM, Mihaita Ivascu wrote:
>>>>>>> On Wed, Oct 16, 2019 at 11:26 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
>>>>> wrote:
>>>>>>>>
>>>>>>>> On 10/16/19 11:21 AM, Mihaita Ivascu wrote:
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>>    Thanks for your answer. Yes i am able to connect via PUTTY to the
>>>>> target.
>>>>>>>>>    Then I should use some adb commands in order to push the new
>>>>>>>>> barebox/firmware ? do you know where I could find some examples?
>>>>>>>>
>>>>>>>> fastboot device -l works normally on Linux. You need to check what you
>>>>> need
>>>>>>>> to do on Windows to do the same. You should only need the Fastboot
>>>>> utility
>>>>>>>> for this.
>>>>>>>>
>>>>>>> [mi] Yes I have both fastboot and adb installed on both Windows and
>>>>>>> Linux machines. In both cases it does not list any device.
>>>>>>>        The board is detected as fastboot android is windows device
>>>>>>> manager. But the fastboot and adb does not list it. same for Linux.
>>>>>>> Please see attachment
>>>>>>
>>>>>> Let's focus on Linux. You don't see a device there?
>>>>>> What does barebox say? Does it say 'multi_bind: creating Fastboot
>>>>> function'?
>>>>>> What does you Linux host's dmesg say?
>>>>>>
>>>>>
>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ usbgadget -aA
>>>>> udc0: registering UDC driver [g_multi]
>>>>> multi_bind: creating Fastboot function
>>>>> multi_bind: creating ACM function
>>>>> g_multi usbgadget: Multifunction Composite Gadget
>>>>> g_multi usbgadget: userspace failed to provide iSerialNumber
>>>>> g_multi usbgadget: g_multi ready
>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ g_multi usbgadget: high-speed
>>>>> config #1: Multifunction Composite Gadget
>>>>>
>>>>> dmesg:
>>>>>
>>>>> [   25.602275] usb 1-1.3: USB disconnect, device number 3
>>>>> [   28.359930] usb 1-1.3: new high-speed USB device number 5 using ehci-pci
>>>>> [   28.452971] usb 1-1.3: New USB device found, idVendor=1d6b,
>>>>> idProduct=0104
>>>>> [   28.452976] usb 1-1.3: New USB device strings: Mfr=0, Product=2,
>>>>> SerialNumber=0
>>>>> [   28.452980] usb 1-1.3: Product: Phytec phyCORE-i.MX6 Ultra Lite SOM
>>>>> [   28.457925] cdc_acm 1-1.3:1.1: ttyACM0: USB ACM device
>>>>>
>>>>>
>>>>> So I see the device on Linux. But fastboot does not list any device on
>>>>> Linux.
>>>>
>>>> sudo doesn't change this?
>>>>
>>>>>
>>>>>>  >
>>>>>>>>>
>>>>>>>>>    Also I have a question: purpose of this activity is for me to be
>>>>>>>>> able to flash some imx6ul boards that have no firmware: no barebox.
>>>>>>>>>    So I know hardware config for the port is otg mode but as I have no
>>>>>>>>> barebox running them before I am wondering if I will be able to
>>>>>>>>> connect via PUTTY if I do not set the ACM gadget from barebox?
>>>>>>>>
>>>>>>>> Check the Embest MarS board's environment in barebox master. It sets up
>>>>>>>> a fastboot gadget automatically on boot from imx-usb-loader.
>>>>>>>> You can adjust it to your liking.
>>>>>>>
>>>>>>>   [mi] I was not able to find any docs about this board. I will keep
>>>>>>> searching/asking in the nxp community. If you have already ahve any
>>>>>>> files related to it would be helpful. Thanks
>>>>>>
>>>>>> It's in the barebox next branch (not master, sorry), see here:
>>>>>>
>>>>> https://github.com/saschahauer/barebox/blob/next/arch/arm/boards/embest-marsboard/defaultenv-mars/init/fastboot
>>>>>>
>>>>>> You can copy and adjust the environment setup for your board.
>>>>>>
>>>>>>>>
>>>>>>>> Cheers
>>>>>>>> Ahmad
>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>>       Mihaita
>>>>>>>>>
>>>>>>>>> On Wed, Oct 16, 2019 at 10:51 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> On 10/16/19 10:40 AM, Mihaita Ivascu wrote:
>>>>>>>>>>> Hello again,
>>>>>>>>>>>
>>>>>>>>>>>    I have the target in otg peripheral mode, ADB and fastboot
>>>>> drivers
>>>>>>>>>>> installed but fastboot does not list any device. The board is
>>>>> detected
>>>>>>>>>>> in device manager
>>>>>>>>>>
>>>>>>>>>> Try enabling the ACM gadget in barebox and connect with PuTTY and
>>>>> see if
>>>>>>>>>> at least that works. It worked for me on Windows with another i.MX
>>>>> board
>>>>>>>>>> a month ago.
>>>>>>>>>>
>>>>>>>>>> As for fastboot, I don't know how to configure it on Windows, but
>>>>> surely
>>>>>>>>>> Android Modding boards will have you covered there.
>>>>>>>>>>
>>>>>>>>>>>    Please see attachment. Any ideas how should I proceed? Thanks for
>>>>>>>>>>> the support.
>>>>>>>>>>
>>>>>>>>>> You can enable the ACM gadget in barebox and see if that works, I
>>>>> tested
>>>>>>>>>> it on Windows with an i.MX board a month ago
>>>>>>>>>>
>>>>>>>>>> Cheers
>>>>>>>>>> Ahmad
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>>       Mihaita
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Oct 16, 2019 at 9:32 AM Mihaita Ivascu
>>>>>>>>>>> <mihaita_ivascu@trimble.com> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks. I have installed ADB and fastboot drivers for Win from
>>>>>>>>>>>>
>>>>> https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/
>>>>>>>>>>>> I have installed according to the attachment.
>>>>>>>>>>>> But is not recognized in Windows. I did reboot the system after
>>>>>>>>>>>> installation but did not add any new env variable.
>>>>>>>>>>>>
>>>>>>>>>>>> H:\>fastboot devices -l
>>>>>>>>>>>> 'fastboot' is not recognized as an internal or external command,
>>>>>>>>>>>> operable program or batch file.
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>       Mihaita
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On Tue, Oct 15, 2019 at 4:44 PM Ahmad Fatoum <
>>>>> a.fatoum@pengutronix.de> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 10/15/19 4:41 PM, Mihaita Ivascu wrote:
>>>>>>>>>>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
>>>>>>>>>>>>> That's what you run on your host system, not on the target.
>>>>>>>>>>>>> --
>>>>>>>>>>>>> Pengutronix e.K.                           |
>>>>>         |
>>>>>>>>>>>>> Industrial Linux Solutions                 |
>>>>> http://www.pengutronix.de/  |
>>>>>>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone:
>>>>> +49-5121-206917-0    |
>>>>>>>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
>>>>> +49-5121-206917-5555 |
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Pengutronix e.K.                           |
>>>>>     |
>>>>>>>>>> Industrial Linux Solutions                 |
>>>>> http://www.pengutronix.de/  |
>>>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone:
>>>>> +49-5121-206917-0    |
>>>>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
>>>>> +49-5121-206917-5555 |
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Pengutronix e.K.                           |
>>>>>   |
>>>>>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/
>>>>>  |
>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0
>>>>>    |
>>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
>>>>> +49-5121-206917-5555 |
>>>>>>
>>>>>> --
>>>>>> Pengutronix e.K.                           |                             |
>>>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
>>>>>
>>>>
>>>> --
>>>> Pengutronix e.K.                           |                             |
>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
>>>
>>
>>
>> --
>> Pengutronix e.K.                           |                             |
>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-16 12:45                                       ` Ahmad Fatoum
@ 2019-10-17  8:40                                         ` Mihaita Ivascu
  2019-10-18 12:46                                           ` Ahmad Fatoum
  0 siblings, 1 reply; 24+ messages in thread
From: Mihaita Ivascu @ 2019-10-17  8:40 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

Yes I have tried with 2019.01.0 barebox but no change. On linux I
cannot even connect with PUTTY even though /dev/ttyACM0 is present. On
Windows at least I can connect via PUTTY
On both OSes fastboot does not list any device. But the board is
detected in device manager/dmesg.

Best regards,
         Mihaita Ivascu

On Wed, Oct 16, 2019 at 2:46 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>
> On 10/16/19 2:44 PM, Mihaita Ivascu wrote:
> > 2018.04.0
>
> I've v2019.09.0 and did the same steps you described and it works for me.
> Can you try with a newer version?
>
> >
> > On Wed, Oct 16, 2019 at 2:41 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
> >>
> >> On 10/16/19 2:35 PM, Mihaita Ivascu wrote:
> >>> No it does not. Still no devices listed.
> >>
> >> Strange. What barebox version?
> >>
> >>>
> >>> Thanks,
> >>>       Mihaita
> >>>
> >>> On Wed, Oct 16, 2019 at 1:36 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
> >>>>
> >>>> On 10/16/19 1:28 PM, Mihaita Ivascu wrote:
> >>>>> On Wed, Oct 16, 2019 at 11:53 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
> >>>>> wrote:
> >>>>>>
> >>>>>>
> >>>>>> On 10/16/19 11:48 AM, Mihaita Ivascu wrote:
> >>>>>>> On Wed, Oct 16, 2019 at 11:26 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
> >>>>> wrote:
> >>>>>>>>
> >>>>>>>> On 10/16/19 11:21 AM, Mihaita Ivascu wrote:
> >>>>>>>>> Hello,
> >>>>>>>>>
> >>>>>>>>>    Thanks for your answer. Yes i am able to connect via PUTTY to the
> >>>>> target.
> >>>>>>>>>    Then I should use some adb commands in order to push the new
> >>>>>>>>> barebox/firmware ? do you know where I could find some examples?
> >>>>>>>>
> >>>>>>>> fastboot device -l works normally on Linux. You need to check what you
> >>>>> need
> >>>>>>>> to do on Windows to do the same. You should only need the Fastboot
> >>>>> utility
> >>>>>>>> for this.
> >>>>>>>>
> >>>>>>> [mi] Yes I have both fastboot and adb installed on both Windows and
> >>>>>>> Linux machines. In both cases it does not list any device.
> >>>>>>>        The board is detected as fastboot android is windows device
> >>>>>>> manager. But the fastboot and adb does not list it. same for Linux.
> >>>>>>> Please see attachment
> >>>>>>
> >>>>>> Let's focus on Linux. You don't see a device there?
> >>>>>> What does barebox say? Does it say 'multi_bind: creating Fastboot
> >>>>> function'?
> >>>>>> What does you Linux host's dmesg say?
> >>>>>>
> >>>>>
> >>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ usbgadget -aA
> >>>>> udc0: registering UDC driver [g_multi]
> >>>>> multi_bind: creating Fastboot function
> >>>>> multi_bind: creating ACM function
> >>>>> g_multi usbgadget: Multifunction Composite Gadget
> >>>>> g_multi usbgadget: userspace failed to provide iSerialNumber
> >>>>> g_multi usbgadget: g_multi ready
> >>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ g_multi usbgadget: high-speed
> >>>>> config #1: Multifunction Composite Gadget
> >>>>>
> >>>>> dmesg:
> >>>>>
> >>>>> [   25.602275] usb 1-1.3: USB disconnect, device number 3
> >>>>> [   28.359930] usb 1-1.3: new high-speed USB device number 5 using ehci-pci
> >>>>> [   28.452971] usb 1-1.3: New USB device found, idVendor=1d6b,
> >>>>> idProduct=0104
> >>>>> [   28.452976] usb 1-1.3: New USB device strings: Mfr=0, Product=2,
> >>>>> SerialNumber=0
> >>>>> [   28.452980] usb 1-1.3: Product: Phytec phyCORE-i.MX6 Ultra Lite SOM
> >>>>> [   28.457925] cdc_acm 1-1.3:1.1: ttyACM0: USB ACM device
> >>>>>
> >>>>>
> >>>>> So I see the device on Linux. But fastboot does not list any device on
> >>>>> Linux.
> >>>>
> >>>> sudo doesn't change this?
> >>>>
> >>>>>
> >>>>>>  >
> >>>>>>>>>
> >>>>>>>>>    Also I have a question: purpose of this activity is for me to be
> >>>>>>>>> able to flash some imx6ul boards that have no firmware: no barebox.
> >>>>>>>>>    So I know hardware config for the port is otg mode but as I have no
> >>>>>>>>> barebox running them before I am wondering if I will be able to
> >>>>>>>>> connect via PUTTY if I do not set the ACM gadget from barebox?
> >>>>>>>>
> >>>>>>>> Check the Embest MarS board's environment in barebox master. It sets up
> >>>>>>>> a fastboot gadget automatically on boot from imx-usb-loader.
> >>>>>>>> You can adjust it to your liking.
> >>>>>>>
> >>>>>>>   [mi] I was not able to find any docs about this board. I will keep
> >>>>>>> searching/asking in the nxp community. If you have already ahve any
> >>>>>>> files related to it would be helpful. Thanks
> >>>>>>
> >>>>>> It's in the barebox next branch (not master, sorry), see here:
> >>>>>>
> >>>>> https://github.com/saschahauer/barebox/blob/next/arch/arm/boards/embest-marsboard/defaultenv-mars/init/fastboot
> >>>>>>
> >>>>>> You can copy and adjust the environment setup for your board.
> >>>>>>
> >>>>>>>>
> >>>>>>>> Cheers
> >>>>>>>> Ahmad
> >>>>>>>>
> >>>>>>>>>
> >>>>>>>>> Thanks,
> >>>>>>>>>       Mihaita
> >>>>>>>>>
> >>>>>>>>> On Wed, Oct 16, 2019 at 10:51 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
> >>>>> wrote:
> >>>>>>>>>>
> >>>>>>>>>> On 10/16/19 10:40 AM, Mihaita Ivascu wrote:
> >>>>>>>>>>> Hello again,
> >>>>>>>>>>>
> >>>>>>>>>>>    I have the target in otg peripheral mode, ADB and fastboot
> >>>>> drivers
> >>>>>>>>>>> installed but fastboot does not list any device. The board is
> >>>>> detected
> >>>>>>>>>>> in device manager
> >>>>>>>>>>
> >>>>>>>>>> Try enabling the ACM gadget in barebox and connect with PuTTY and
> >>>>> see if
> >>>>>>>>>> at least that works. It worked for me on Windows with another i.MX
> >>>>> board
> >>>>>>>>>> a month ago.
> >>>>>>>>>>
> >>>>>>>>>> As for fastboot, I don't know how to configure it on Windows, but
> >>>>> surely
> >>>>>>>>>> Android Modding boards will have you covered there.
> >>>>>>>>>>
> >>>>>>>>>>>    Please see attachment. Any ideas how should I proceed? Thanks for
> >>>>>>>>>>> the support.
> >>>>>>>>>>
> >>>>>>>>>> You can enable the ACM gadget in barebox and see if that works, I
> >>>>> tested
> >>>>>>>>>> it on Windows with an i.MX board a month ago
> >>>>>>>>>>
> >>>>>>>>>> Cheers
> >>>>>>>>>> Ahmad
> >>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> Thanks,
> >>>>>>>>>>>       Mihaita
> >>>>>>>>>>>
> >>>>>>>>>>> On Wed, Oct 16, 2019 at 9:32 AM Mihaita Ivascu
> >>>>>>>>>>> <mihaita_ivascu@trimble.com> wrote:
> >>>>>>>>>>>>
> >>>>>>>>>>>> Thanks. I have installed ADB and fastboot drivers for Win from
> >>>>>>>>>>>>
> >>>>> https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/
> >>>>>>>>>>>> I have installed according to the attachment.
> >>>>>>>>>>>> But is not recognized in Windows. I did reboot the system after
> >>>>>>>>>>>> installation but did not add any new env variable.
> >>>>>>>>>>>>
> >>>>>>>>>>>> H:\>fastboot devices -l
> >>>>>>>>>>>> 'fastboot' is not recognized as an internal or external command,
> >>>>>>>>>>>> operable program or batch file.
> >>>>>>>>>>>>
> >>>>>>>>>>>> Thanks,
> >>>>>>>>>>>>       Mihaita
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> On Tue, Oct 15, 2019 at 4:44 PM Ahmad Fatoum <
> >>>>> a.fatoum@pengutronix.de> wrote:
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> On 10/15/19 4:41 PM, Mihaita Ivascu wrote:
> >>>>>>>>>>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
> >>>>>>>>>>>>> That's what you run on your host system, not on the target.
> >>>>>>>>>>>>> --
> >>>>>>>>>>>>> Pengutronix e.K.                           |
> >>>>>         |
> >>>>>>>>>>>>> Industrial Linux Solutions                 |
> >>>>> http://www.pengutronix.de/  |
> >>>>>>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone:
> >>>>> +49-5121-206917-0    |
> >>>>>>>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
> >>>>> +49-5121-206917-5555 |
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> --
> >>>>>>>>>> Pengutronix e.K.                           |
> >>>>>     |
> >>>>>>>>>> Industrial Linux Solutions                 |
> >>>>> http://www.pengutronix.de/  |
> >>>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone:
> >>>>> +49-5121-206917-0    |
> >>>>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
> >>>>> +49-5121-206917-5555 |
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> --
> >>>>>>>> Pengutronix e.K.                           |
> >>>>>   |
> >>>>>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/
> >>>>>  |
> >>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0
> >>>>>    |
> >>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
> >>>>> +49-5121-206917-5555 |
> >>>>>>
> >>>>>> --
> >>>>>> Pengutronix e.K.                           |                             |
> >>>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> >>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> >>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> >>>>>
> >>>>
> >>>> --
> >>>> Pengutronix e.K.                           |                             |
> >>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> >>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> >>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> >>>
> >>
> >>
> >> --
> >> Pengutronix e.K.                           |                             |
> >> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> >> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> >> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> >
>
>
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-17  8:40                                         ` Mihaita Ivascu
@ 2019-10-18 12:46                                           ` Ahmad Fatoum
  2019-10-21 12:39                                             ` Mihaita Ivascu
  0 siblings, 1 reply; 24+ messages in thread
From: Ahmad Fatoum @ 2019-10-18 12:46 UTC (permalink / raw)
  To: Mihaita Ivascu; +Cc: barebox

Hello,

On 10/17/19 10:40 AM, Mihaita Ivascu wrote:
> Yes I have tried with 2019.01.0 barebox but no change. On linux I
> cannot even connect with PUTTY even though /dev/ttyACM0 is present. On
> Windows at least I can connect via PUTTY

There's A Linux PuTTY client? Have you tried with a more traditional client,
e.g. screen or microcom?

> On both OSes fastboot does not list any device. But the board is
> detected in device manager/dmesg.

:/
I don't know why it doesn't work for you. I've used so far at least barebox
v2018.12.0, v2019.03.0 and v2019.09.0 on my i.MX6UL board and all were correctly
detected by the fastboot installed on my system (1:7.0.+r33-1 in debian 9.11).

If you want to debug it, you should start by looking into why the ttyACM
doesn't work for you.

Cheers
Ahmad


> 
> Best regards,
>          Mihaita Ivascu
> 
> On Wed, Oct 16, 2019 at 2:46 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>>
>> On 10/16/19 2:44 PM, Mihaita Ivascu wrote:
>>> 2018.04.0
>>
>> I've v2019.09.0 and did the same steps you described and it works for me.
>> Can you try with a newer version?
>>
>>>
>>> On Wed, Oct 16, 2019 at 2:41 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>>>>
>>>> On 10/16/19 2:35 PM, Mihaita Ivascu wrote:
>>>>> No it does not. Still no devices listed.
>>>>
>>>> Strange. What barebox version?
>>>>
>>>>>
>>>>> Thanks,
>>>>>       Mihaita
>>>>>
>>>>> On Wed, Oct 16, 2019 at 1:36 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>>>>>>
>>>>>> On 10/16/19 1:28 PM, Mihaita Ivascu wrote:
>>>>>>> On Wed, Oct 16, 2019 at 11:53 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>> On 10/16/19 11:48 AM, Mihaita Ivascu wrote:
>>>>>>>>> On Wed, Oct 16, 2019 at 11:26 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> On 10/16/19 11:21 AM, Mihaita Ivascu wrote:
>>>>>>>>>>> Hello,
>>>>>>>>>>>
>>>>>>>>>>>    Thanks for your answer. Yes i am able to connect via PUTTY to the
>>>>>>> target.
>>>>>>>>>>>    Then I should use some adb commands in order to push the new
>>>>>>>>>>> barebox/firmware ? do you know where I could find some examples?
>>>>>>>>>>
>>>>>>>>>> fastboot device -l works normally on Linux. You need to check what you
>>>>>>> need
>>>>>>>>>> to do on Windows to do the same. You should only need the Fastboot
>>>>>>> utility
>>>>>>>>>> for this.
>>>>>>>>>>
>>>>>>>>> [mi] Yes I have both fastboot and adb installed on both Windows and
>>>>>>>>> Linux machines. In both cases it does not list any device.
>>>>>>>>>        The board is detected as fastboot android is windows device
>>>>>>>>> manager. But the fastboot and adb does not list it. same for Linux.
>>>>>>>>> Please see attachment
>>>>>>>>
>>>>>>>> Let's focus on Linux. You don't see a device there?
>>>>>>>> What does barebox say? Does it say 'multi_bind: creating Fastboot
>>>>>>> function'?
>>>>>>>> What does you Linux host's dmesg say?
>>>>>>>>
>>>>>>>
>>>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ usbgadget -aA
>>>>>>> udc0: registering UDC driver [g_multi]
>>>>>>> multi_bind: creating Fastboot function
>>>>>>> multi_bind: creating ACM function
>>>>>>> g_multi usbgadget: Multifunction Composite Gadget
>>>>>>> g_multi usbgadget: userspace failed to provide iSerialNumber
>>>>>>> g_multi usbgadget: g_multi ready
>>>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ g_multi usbgadget: high-speed
>>>>>>> config #1: Multifunction Composite Gadget
>>>>>>>
>>>>>>> dmesg:
>>>>>>>
>>>>>>> [   25.602275] usb 1-1.3: USB disconnect, device number 3
>>>>>>> [   28.359930] usb 1-1.3: new high-speed USB device number 5 using ehci-pci
>>>>>>> [   28.452971] usb 1-1.3: New USB device found, idVendor=1d6b,
>>>>>>> idProduct=0104
>>>>>>> [   28.452976] usb 1-1.3: New USB device strings: Mfr=0, Product=2,
>>>>>>> SerialNumber=0
>>>>>>> [   28.452980] usb 1-1.3: Product: Phytec phyCORE-i.MX6 Ultra Lite SOM
>>>>>>> [   28.457925] cdc_acm 1-1.3:1.1: ttyACM0: USB ACM device
>>>>>>>
>>>>>>>
>>>>>>> So I see the device on Linux. But fastboot does not list any device on
>>>>>>> Linux.
>>>>>>
>>>>>> sudo doesn't change this?
>>>>>>
>>>>>>>
>>>>>>>>  >
>>>>>>>>>>>
>>>>>>>>>>>    Also I have a question: purpose of this activity is for me to be
>>>>>>>>>>> able to flash some imx6ul boards that have no firmware: no barebox.
>>>>>>>>>>>    So I know hardware config for the port is otg mode but as I have no
>>>>>>>>>>> barebox running them before I am wondering if I will be able to
>>>>>>>>>>> connect via PUTTY if I do not set the ACM gadget from barebox?
>>>>>>>>>>
>>>>>>>>>> Check the Embest MarS board's environment in barebox master. It sets up
>>>>>>>>>> a fastboot gadget automatically on boot from imx-usb-loader.
>>>>>>>>>> You can adjust it to your liking.
>>>>>>>>>
>>>>>>>>>   [mi] I was not able to find any docs about this board. I will keep
>>>>>>>>> searching/asking in the nxp community. If you have already ahve any
>>>>>>>>> files related to it would be helpful. Thanks
>>>>>>>>
>>>>>>>> It's in the barebox next branch (not master, sorry), see here:
>>>>>>>>
>>>>>>> https://github.com/saschahauer/barebox/blob/next/arch/arm/boards/embest-marsboard/defaultenv-mars/init/fastboot
>>>>>>>>
>>>>>>>> You can copy and adjust the environment setup for your board.
>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Cheers
>>>>>>>>>> Ahmad
>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Thanks,
>>>>>>>>>>>       Mihaita
>>>>>>>>>>>
>>>>>>>>>>> On Wed, Oct 16, 2019 at 10:51 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>> On 10/16/19 10:40 AM, Mihaita Ivascu wrote:
>>>>>>>>>>>>> Hello again,
>>>>>>>>>>>>>
>>>>>>>>>>>>>    I have the target in otg peripheral mode, ADB and fastboot
>>>>>>> drivers
>>>>>>>>>>>>> installed but fastboot does not list any device. The board is
>>>>>>> detected
>>>>>>>>>>>>> in device manager
>>>>>>>>>>>>
>>>>>>>>>>>> Try enabling the ACM gadget in barebox and connect with PuTTY and
>>>>>>> see if
>>>>>>>>>>>> at least that works. It worked for me on Windows with another i.MX
>>>>>>> board
>>>>>>>>>>>> a month ago.
>>>>>>>>>>>>
>>>>>>>>>>>> As for fastboot, I don't know how to configure it on Windows, but
>>>>>>> surely
>>>>>>>>>>>> Android Modding boards will have you covered there.
>>>>>>>>>>>>
>>>>>>>>>>>>>    Please see attachment. Any ideas how should I proceed? Thanks for
>>>>>>>>>>>>> the support.
>>>>>>>>>>>>
>>>>>>>>>>>> You can enable the ACM gadget in barebox and see if that works, I
>>>>>>> tested
>>>>>>>>>>>> it on Windows with an i.MX board a month ago
>>>>>>>>>>>>
>>>>>>>>>>>> Cheers
>>>>>>>>>>>> Ahmad
>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>       Mihaita
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Wed, Oct 16, 2019 at 9:32 AM Mihaita Ivascu
>>>>>>>>>>>>> <mihaita_ivascu@trimble.com> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thanks. I have installed ADB and fastboot drivers for Win from
>>>>>>>>>>>>>>
>>>>>>> https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/
>>>>>>>>>>>>>> I have installed according to the attachment.
>>>>>>>>>>>>>> But is not recognized in Windows. I did reboot the system after
>>>>>>>>>>>>>> installation but did not add any new env variable.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> H:\>fastboot devices -l
>>>>>>>>>>>>>> 'fastboot' is not recognized as an internal or external command,
>>>>>>>>>>>>>> operable program or batch file.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>>       Mihaita
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On Tue, Oct 15, 2019 at 4:44 PM Ahmad Fatoum <
>>>>>>> a.fatoum@pengutronix.de> wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> On 10/15/19 4:41 PM, Mihaita Ivascu wrote:
>>>>>>>>>>>>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
>>>>>>>>>>>>>>> That's what you run on your host system, not on the target.
>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>> Pengutronix e.K.                           |
>>>>>>>         |
>>>>>>>>>>>>>>> Industrial Linux Solutions                 |
>>>>>>> http://www.pengutronix.de/  |
>>>>>>>>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone:
>>>>>>> +49-5121-206917-0    |
>>>>>>>>>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
>>>>>>> +49-5121-206917-5555 |
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> --
>>>>>>>>>>>> Pengutronix e.K.                           |
>>>>>>>     |
>>>>>>>>>>>> Industrial Linux Solutions                 |
>>>>>>> http://www.pengutronix.de/  |
>>>>>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone:
>>>>>>> +49-5121-206917-0    |
>>>>>>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
>>>>>>> +49-5121-206917-5555 |
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> Pengutronix e.K.                           |
>>>>>>>   |
>>>>>>>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/
>>>>>>>  |
>>>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0
>>>>>>>    |
>>>>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
>>>>>>> +49-5121-206917-5555 |
>>>>>>>>
>>>>>>>> --
>>>>>>>> Pengutronix e.K.                           |                             |
>>>>>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
>>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> Pengutronix e.K.                           |                             |
>>>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
>>>>>
>>>>
>>>>
>>>> --
>>>> Pengutronix e.K.                           |                             |
>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
>>>
>>
>>
>> --
>> Pengutronix e.K.                           |                             |
>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

* Re: MFGTools from NXP
  2019-10-18 12:46                                           ` Ahmad Fatoum
@ 2019-10-21 12:39                                             ` Mihaita Ivascu
  0 siblings, 0 replies; 24+ messages in thread
From: Mihaita Ivascu @ 2019-10-21 12:39 UTC (permalink / raw)
  To: Ahmad Fatoum; +Cc: barebox

Hello,

   Thanks for your reply. Yes ttyACM is ok now for Linux i can connect
to it. But fastboot still does not detect the board.

Thanks,
       Mihaita

On Fri, Oct 18, 2019 at 2:46 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
>
> Hello,
>
> On 10/17/19 10:40 AM, Mihaita Ivascu wrote:
> > Yes I have tried with 2019.01.0 barebox but no change. On linux I
> > cannot even connect with PUTTY even though /dev/ttyACM0 is present. On
> > Windows at least I can connect via PUTTY
>
> There's A Linux PuTTY client? Have you tried with a more traditional client,
> e.g. screen or microcom?
>
> > On both OSes fastboot does not list any device. But the board is
> > detected in device manager/dmesg.
>
> :/
> I don't know why it doesn't work for you. I've used so far at least barebox
> v2018.12.0, v2019.03.0 and v2019.09.0 on my i.MX6UL board and all were correctly
> detected by the fastboot installed on my system (1:7.0.+r33-1 in debian 9.11).
>
> If you want to debug it, you should start by looking into why the ttyACM
> doesn't work for you.
>
> Cheers
> Ahmad
>
>
> >
> > Best regards,
> >          Mihaita Ivascu
> >
> > On Wed, Oct 16, 2019 at 2:46 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
> >>
> >> On 10/16/19 2:44 PM, Mihaita Ivascu wrote:
> >>> 2018.04.0
> >>
> >> I've v2019.09.0 and did the same steps you described and it works for me.
> >> Can you try with a newer version?
> >>
> >>>
> >>> On Wed, Oct 16, 2019 at 2:41 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
> >>>>
> >>>> On 10/16/19 2:35 PM, Mihaita Ivascu wrote:
> >>>>> No it does not. Still no devices listed.
> >>>>
> >>>> Strange. What barebox version?
> >>>>
> >>>>>
> >>>>> Thanks,
> >>>>>       Mihaita
> >>>>>
> >>>>> On Wed, Oct 16, 2019 at 1:36 PM Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
> >>>>>>
> >>>>>> On 10/16/19 1:28 PM, Mihaita Ivascu wrote:
> >>>>>>> On Wed, Oct 16, 2019 at 11:53 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
> >>>>>>> wrote:
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> On 10/16/19 11:48 AM, Mihaita Ivascu wrote:
> >>>>>>>>> On Wed, Oct 16, 2019 at 11:26 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
> >>>>>>> wrote:
> >>>>>>>>>>
> >>>>>>>>>> On 10/16/19 11:21 AM, Mihaita Ivascu wrote:
> >>>>>>>>>>> Hello,
> >>>>>>>>>>>
> >>>>>>>>>>>    Thanks for your answer. Yes i am able to connect via PUTTY to the
> >>>>>>> target.
> >>>>>>>>>>>    Then I should use some adb commands in order to push the new
> >>>>>>>>>>> barebox/firmware ? do you know where I could find some examples?
> >>>>>>>>>>
> >>>>>>>>>> fastboot device -l works normally on Linux. You need to check what you
> >>>>>>> need
> >>>>>>>>>> to do on Windows to do the same. You should only need the Fastboot
> >>>>>>> utility
> >>>>>>>>>> for this.
> >>>>>>>>>>
> >>>>>>>>> [mi] Yes I have both fastboot and adb installed on both Windows and
> >>>>>>>>> Linux machines. In both cases it does not list any device.
> >>>>>>>>>        The board is detected as fastboot android is windows device
> >>>>>>>>> manager. But the fastboot and adb does not list it. same for Linux.
> >>>>>>>>> Please see attachment
> >>>>>>>>
> >>>>>>>> Let's focus on Linux. You don't see a device there?
> >>>>>>>> What does barebox say? Does it say 'multi_bind: creating Fastboot
> >>>>>>> function'?
> >>>>>>>> What does you Linux host's dmesg say?
> >>>>>>>>
> >>>>>>>
> >>>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ usbgadget -aA
> >>>>>>> udc0: registering UDC driver [g_multi]
> >>>>>>> multi_bind: creating Fastboot function
> >>>>>>> multi_bind: creating ACM function
> >>>>>>> g_multi usbgadget: Multifunction Composite Gadget
> >>>>>>> g_multi usbgadget: userspace failed to provide iSerialNumber
> >>>>>>> g_multi usbgadget: g_multi ready
> >>>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ g_multi usbgadget: high-speed
> >>>>>>> config #1: Multifunction Composite Gadget
> >>>>>>>
> >>>>>>> dmesg:
> >>>>>>>
> >>>>>>> [   25.602275] usb 1-1.3: USB disconnect, device number 3
> >>>>>>> [   28.359930] usb 1-1.3: new high-speed USB device number 5 using ehci-pci
> >>>>>>> [   28.452971] usb 1-1.3: New USB device found, idVendor=1d6b,
> >>>>>>> idProduct=0104
> >>>>>>> [   28.452976] usb 1-1.3: New USB device strings: Mfr=0, Product=2,
> >>>>>>> SerialNumber=0
> >>>>>>> [   28.452980] usb 1-1.3: Product: Phytec phyCORE-i.MX6 Ultra Lite SOM
> >>>>>>> [   28.457925] cdc_acm 1-1.3:1.1: ttyACM0: USB ACM device
> >>>>>>>
> >>>>>>>
> >>>>>>> So I see the device on Linux. But fastboot does not list any device on
> >>>>>>> Linux.
> >>>>>>
> >>>>>> sudo doesn't change this?
> >>>>>>
> >>>>>>>
> >>>>>>>>  >
> >>>>>>>>>>>
> >>>>>>>>>>>    Also I have a question: purpose of this activity is for me to be
> >>>>>>>>>>> able to flash some imx6ul boards that have no firmware: no barebox.
> >>>>>>>>>>>    So I know hardware config for the port is otg mode but as I have no
> >>>>>>>>>>> barebox running them before I am wondering if I will be able to
> >>>>>>>>>>> connect via PUTTY if I do not set the ACM gadget from barebox?
> >>>>>>>>>>
> >>>>>>>>>> Check the Embest MarS board's environment in barebox master. It sets up
> >>>>>>>>>> a fastboot gadget automatically on boot from imx-usb-loader.
> >>>>>>>>>> You can adjust it to your liking.
> >>>>>>>>>
> >>>>>>>>>   [mi] I was not able to find any docs about this board. I will keep
> >>>>>>>>> searching/asking in the nxp community. If you have already ahve any
> >>>>>>>>> files related to it would be helpful. Thanks
> >>>>>>>>
> >>>>>>>> It's in the barebox next branch (not master, sorry), see here:
> >>>>>>>>
> >>>>>>> https://github.com/saschahauer/barebox/blob/next/arch/arm/boards/embest-marsboard/defaultenv-mars/init/fastboot
> >>>>>>>>
> >>>>>>>> You can copy and adjust the environment setup for your board.
> >>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> Cheers
> >>>>>>>>>> Ahmad
> >>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>> Thanks,
> >>>>>>>>>>>       Mihaita
> >>>>>>>>>>>
> >>>>>>>>>>> On Wed, Oct 16, 2019 at 10:51 AM Ahmad Fatoum <a.fatoum@pengutronix.de>
> >>>>>>> wrote:
> >>>>>>>>>>>>
> >>>>>>>>>>>> On 10/16/19 10:40 AM, Mihaita Ivascu wrote:
> >>>>>>>>>>>>> Hello again,
> >>>>>>>>>>>>>
> >>>>>>>>>>>>>    I have the target in otg peripheral mode, ADB and fastboot
> >>>>>>> drivers
> >>>>>>>>>>>>> installed but fastboot does not list any device. The board is
> >>>>>>> detected
> >>>>>>>>>>>>> in device manager
> >>>>>>>>>>>>
> >>>>>>>>>>>> Try enabling the ACM gadget in barebox and connect with PuTTY and
> >>>>>>> see if
> >>>>>>>>>>>> at least that works. It worked for me on Windows with another i.MX
> >>>>>>> board
> >>>>>>>>>>>> a month ago.
> >>>>>>>>>>>>
> >>>>>>>>>>>> As for fastboot, I don't know how to configure it on Windows, but
> >>>>>>> surely
> >>>>>>>>>>>> Android Modding boards will have you covered there.
> >>>>>>>>>>>>
> >>>>>>>>>>>>>    Please see attachment. Any ideas how should I proceed? Thanks for
> >>>>>>>>>>>>> the support.
> >>>>>>>>>>>>
> >>>>>>>>>>>> You can enable the ACM gadget in barebox and see if that works, I
> >>>>>>> tested
> >>>>>>>>>>>> it on Windows with an i.MX board a month ago
> >>>>>>>>>>>>
> >>>>>>>>>>>> Cheers
> >>>>>>>>>>>> Ahmad
> >>>>>>>>>>>>
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> Thanks,
> >>>>>>>>>>>>>       Mihaita
> >>>>>>>>>>>>>
> >>>>>>>>>>>>> On Wed, Oct 16, 2019 at 9:32 AM Mihaita Ivascu
> >>>>>>>>>>>>> <mihaita_ivascu@trimble.com> wrote:
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> Thanks. I have installed ADB and fastboot drivers for Win from
> >>>>>>>>>>>>>>
> >>>>>>> https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/
> >>>>>>>>>>>>>> I have installed according to the attachment.
> >>>>>>>>>>>>>> But is not recognized in Windows. I did reboot the system after
> >>>>>>>>>>>>>> installation but did not add any new env variable.
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> H:\>fastboot devices -l
> >>>>>>>>>>>>>> 'fastboot' is not recognized as an internal or external command,
> >>>>>>>>>>>>>> operable program or batch file.
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> Thanks,
> >>>>>>>>>>>>>>       Mihaita
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>>
> >>>>>>>>>>>>>> On Tue, Oct 15, 2019 at 4:44 PM Ahmad Fatoum <
> >>>>>>> a.fatoum@pengutronix.de> wrote:
> >>>>>>>>>>>>>>>
> >>>>>>>>>>>>>>> On 10/15/19 4:41 PM, Mihaita Ivascu wrote:
> >>>>>>>>>>>>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l
> >>>>>>>>>>>>>>> That's what you run on your host system, not on the target.
> >>>>>>>>>>>>>>> --
> >>>>>>>>>>>>>>> Pengutronix e.K.                           |
> >>>>>>>         |
> >>>>>>>>>>>>>>> Industrial Linux Solutions                 |
> >>>>>>> http://www.pengutronix.de/  |
> >>>>>>>>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone:
> >>>>>>> +49-5121-206917-0    |
> >>>>>>>>>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
> >>>>>>> +49-5121-206917-5555 |
> >>>>>>>>>>>>
> >>>>>>>>>>>>
> >>>>>>>>>>>> --
> >>>>>>>>>>>> Pengutronix e.K.                           |
> >>>>>>>     |
> >>>>>>>>>>>> Industrial Linux Solutions                 |
> >>>>>>> http://www.pengutronix.de/  |
> >>>>>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone:
> >>>>>>> +49-5121-206917-0    |
> >>>>>>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
> >>>>>>> +49-5121-206917-5555 |
> >>>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>> --
> >>>>>>>>>> Pengutronix e.K.                           |
> >>>>>>>   |
> >>>>>>>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/
> >>>>>>>  |
> >>>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0
> >>>>>>>    |
> >>>>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:
> >>>>>>> +49-5121-206917-5555 |
> >>>>>>>>
> >>>>>>>> --
> >>>>>>>> Pengutronix e.K.                           |                             |
> >>>>>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> >>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> >>>>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> >>>>>>>
> >>>>>>
> >>>>>> --
> >>>>>> Pengutronix e.K.                           |                             |
> >>>>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> >>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> >>>>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> >>>>>
> >>>>
> >>>>
> >>>> --
> >>>> Pengutronix e.K.                           |                             |
> >>>> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> >>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> >>>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> >>>
> >>
> >>
> >> --
> >> Pengutronix e.K.                           |                             |
> >> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> >> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> >> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> >
>
>
> --
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2019-10-21 12:39 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-10 13:03 MFGTools from NXP Mihaita Ivascu
2019-10-11  7:21 ` Marco Felsch
2019-10-11  9:47   ` Mihaita Ivascu
2019-10-14 13:07     ` Mihaita Ivascu
2019-10-15 14:07       ` Mihaita Ivascu
2019-10-15 14:17         ` Ahmad Fatoum
2019-10-15 14:41           ` Mihaita Ivascu
2019-10-15 14:44             ` Ahmad Fatoum
2019-10-16  7:32               ` Mihaita Ivascu
2019-10-16  8:40                 ` Mihaita Ivascu
2019-10-16  8:51                   ` Ahmad Fatoum
2019-10-16  9:21                     ` Mihaita Ivascu
2019-10-16  9:26                       ` Ahmad Fatoum
2019-10-16  9:48                         ` Mihaita Ivascu
2019-10-16  9:53                           ` Ahmad Fatoum
2019-10-16 11:32                             ` Mihaita Ivascu
     [not found]                             ` <CAEp+FuDPDra+umeaLYuLUdjuzHiV+_eB+s2pMmwij8Scp6Gd=w@mail.gmail.com>
2019-10-16 11:36                               ` Ahmad Fatoum
2019-10-16 12:35                                 ` Mihaita Ivascu
2019-10-16 12:41                                   ` Ahmad Fatoum
2019-10-16 12:44                                     ` Mihaita Ivascu
2019-10-16 12:45                                       ` Ahmad Fatoum
2019-10-17  8:40                                         ` Mihaita Ivascu
2019-10-18 12:46                                           ` Ahmad Fatoum
2019-10-21 12:39                                             ` Mihaita Ivascu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox