Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-09-26 Thread Rogan Dawes
WARNING: unmet direct dependencies detected for PL01X_SERIAL Depends on [n]: SERIAL [=y] && DM_SERIAL [=n] Selected by [y]: - TARGET_IMX28WINKHUB [=y] && WARNING: unmet direct dependencies detected for PL01X_SERIAL Depends on [n]: SERIAL [=y] && DM_SERIAL [=n] Selected by [y]: -

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-09-26 Thread Fabio Estevam
Hi Rogan, On Tue, Sep 26, 2023 at 1:01 AM Rogan Dawes wrote: > > Hi Fabio, > > That prints "LLC", but does not print "Pref". What happens if you unselect DM_SERIAL like this: --- a/configs/imx28-wink-hub_defconfig +++ b/configs/imx28-wink-hub_defconfig @@ -58,4 +58,3 @@ CONFIG_DM_REGULATOR=y

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-09-25 Thread Rogan Dawes
Hi Fabio, That prints "LLC", but does not print "Pref". Rogan On Tue, 26 Sept 2023 at 02:15, Fabio Estevam wrote: > Hi Rogan, > > On Mon, Sep 25, 2023 at 4:27 PM Rogan Dawes wrote: > > > > That outputs LLC about a second after the mxsldr terminates (kinda > slowly, the individual characters

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-09-25 Thread Fabio Estevam
Hi Rogan, On Mon, Sep 25, 2023 at 4:27 PM Rogan Dawes wrote: > > That outputs LLC about a second after the mxsldr terminates (kinda slowly, > the individual characters can be seen being emitted one at a time), and then > about 5 seconds later, "Pref". But nothing after that point. > > At least

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-09-25 Thread Rogan Dawes
That outputs LLC about a second after the mxsldr terminates (kinda slowly, the individual characters can be seen being emitted one at a time), and then about 5 seconds later, "Pref". But nothing after that point. At least it looks like there is something happening, which is excellent! Thank you!

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-09-25 Thread Fabio Estevam
On Mon, Sep 25, 2023 at 11:00 AM Rogan Dawes wrote: > I see absolutely nothing in the console. > > I’m wondering whether I can possibly execute the vendor SPL with a modern > u-boot? The old U-Boot vendor does not use SPL. It uses an old mechanism called bootlets. I suggest that we start from

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-09-25 Thread Rogan Dawes
Hi Fabio, On Mon, 25 Sep 2023 at 15:04, Fabio Estevam wrote: > Hi Rogan, > > On Mon, Sep 25, 2023 at 6:52 AM Rogan Dawes wrote: > > > > Hi Fabio, > > > > I used the following diff with "make mx28evk_defconfig", but > unfortunately still get absolutely nothing on the DUART when running >

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-09-25 Thread Fabio Estevam
Hi Rogan, On Mon, Sep 25, 2023 at 6:52 AM Rogan Dawes wrote: > > Hi Fabio, > > I used the following diff with "make mx28evk_defconfig", but unfortunately > still get absolutely nothing on the DUART when running "mxsloader u-boot.sb". > In fact, mxsloader returns immediately on trying to load

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-09-25 Thread Rogan Dawes
Hi Fabio, I used the following diff with "make mx28evk_defconfig", but unfortunately still get absolutely nothing on the DUART when running "mxsloader u-boot.sb". In fact, mxsloader returns immediately on trying to load my own u-boot.sb, whereas it hangs when running the vendor u-boot.sb, I

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-09-24 Thread Fabio Estevam
Hi Rogan, On Sun, Sep 24, 2023 at 5:16 PM Rogan Dawes wrote: > > Hi folks, > > I eventually decided that I did need to figure out the DRAM timings for the > Micron chip on my board, but I found an easier way than actually > "understanding what I'm doing"! :-) > > I pulled the vendor U-Boot

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-09-24 Thread Rogan Dawes
Hi folks, I eventually decided that I did need to figure out the DRAM timings for the Micron chip on my board, but I found an easier way than actually "understanding what I'm doing"! :-) I pulled the vendor U-Boot image off the flash, skipped the appropriate number of bytes until I was actually

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-08-23 Thread Rogan Dawes
Hi Fabio, On Tue, 22 Aug 2023 at 13:44, Fabio Estevam wrote: > > Hi Rogan, > > On Tue, Aug 22, 2023 at 6:42 AM Rogan Dawes wrote: > > > > Hi Fabio, > > > > As far as I am aware, the U-boot source for the Wink hub has not been > > made available anywhere. That said, the RAM chip in use on the

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-08-22 Thread Fabio Estevam
Hi Rogan, On Tue, Aug 22, 2023 at 6:42 AM Rogan Dawes wrote: > > Hi Fabio, > > As far as I am aware, the U-boot source for the Wink hub has not been > made available anywhere. That said, the RAM chip in use on the board Was there a formal request for the U-Boot source code to Wink? As per the

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-08-22 Thread Rogan Dawes
Hi Fabio, As far as I am aware, the U-boot source for the Wink hub has not been made available anywhere. That said, the RAM chip in use on the board is marked D9LPX, which apparently corresponds to the following item:

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-08-21 Thread Fabio Estevam
Hi Rogan, On Fri, Aug 18, 2023 at 10:45 AM Rogan Dawes wrote: > > Circling back to this, I wanted to get a modern u-boot running on the > Wink Hub v1 as well. Since it is possible to invoke SDP over USB > (having soldered on a suitable microUSB connector), I have no concern > about bricking it

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-08-18 Thread Rogan Dawes
Circling back to this, I wanted to get a modern u-boot running on the Wink Hub v1 as well. Since it is possible to invoke SDP over USB (having soldered on a suitable microUSB connector), I have no concern about bricking it now. It's also a LOT easier than JTAG! I tried to build and flash the

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-06-24 Thread Fabio Estevam
On Fri, Jun 23, 2023 at 11:41 AM Fabio Estevam wrote: > > [0.00] Booting Linux on physical CPU 0x0 > > [0.00] Linux version 6.4.0-rc6-00242-g1639fae5132b (rogan@vermin) > > (arm-linux-gnueabi-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU > > Binutils for Also, please give

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-06-24 Thread Rogan Dawes
Kernel output up until the crash: Starting kernel ... [0.00] Booting Linux on physical CPU 0x0 [0.00] Linux version 6.4.0-rc6-00242-g1639fae5132b (rogan@vermin) (arm-linux-gnueabi-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #5 Fri Jun 23

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-06-24 Thread Rogan Dawes
I understand the importance now. No, I got to the same result with your dts as with the evk one, crash after the usbcore modules were registered, and then binary garbage on the console. I do understand that you are not familiar with the Wink Hub, and am especially appreciative of the time you are

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-06-23 Thread Fabio Estevam
Hi Rogan, On Fri, Jun 23, 2023 at 11:25 AM Rogan Dawes wrote: > > I understand the importance now. No, I got to the same result with your dts > as with the evk one, crash after the usbcore modules were registered, and > then binary garbage on the console. On the dts I shared, the USB nodes

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-06-23 Thread Fabio Estevam
On Fri, Jun 23, 2023 at 11:35 AM Rogan Dawes wrote: > > Kernel output up until the crash: > > Starting kernel ... > > [0.00] Booting Linux on physical CPU 0x0 > [0.00] Linux version 6.4.0-rc6-00242-g1639fae5132b (rogan@vermin) > (arm-linux-gnueabi-gcc (Debian 10.2.1-6) 10.2.1

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-06-23 Thread Fabio Estevam
Hi Rogan, On Fri, Jun 23, 2023 at 10:53 AM Rogan Dawes wrote: > > Hi Fabio, > > Thanks so much for the effort put in. I just wanted to confirm that I am able > to get console output when using the imx28-evk.dts file, although it crashes > after a few lines of output. That seems to suggest that

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-06-23 Thread Rogan Dawes
Hi Fabio, Thanks so much for the effort put in. I just wanted to confirm that I am able to get console output when using the imx28-evk.dts file, although it crashes after a few lines of output. That seems to suggest that the additional pins that you have added in your patch are not necessary, and

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-06-23 Thread Fabio Estevam
Hi Rogan, On Fri, Jun 23, 2023 at 3:46 AM Rogan Dawes wrote: > > Kernel source is available here: > https://github.com/winkapp/wink-hub-kernel-public Ok, I assume that arch/arm/mach-mx28/mx28evk_pins.orig.c is the original imx28-evk pinmux and arch/arm/mach-mx28/mx28evk_pins.c contains the

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-06-23 Thread Rogan Dawes
Kernel source is available here: https://github.com/winkapp/wink-hub-kernel-public (and to close the loop, since I accidentally emailed Fabio without including the list, the console change to /dev/ttyAMA0 was absolutely the problem!) Thanks again for your help. Rogan On Fri, 23 Jun 2023 at

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-06-22 Thread Rogan Dawes
I tried to follow your suggestion, but so far I have been unsuccessful. I cloned Linus' latest source code, and then did: make ARCH=arm mxs_defconfig make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- cat arch/arm/boot/zImage ./arch/arm/boot/dts/imx28-evk.dtb > arch/arm/boot/zImage_with_dtb cd

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-06-22 Thread Fabio Estevam
Hi Rogan, On Thu, Jun 22, 2023 at 10:03 PM Fabio Estevam wrote: > > Hi Rogan, > > On Thu, Jun 22, 2023 at 7:43 PM Fabio Estevam wrote: > > > You should also pass the kernel command line: console=ttyAMA0,115200n8 > > > > As far as I recall, the 2.6.35 kernel used a different console device. > >

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-06-22 Thread Fabio Estevam
Hi Rogan, On Thu, Jun 22, 2023 at 7:43 PM Fabio Estevam wrote: > You should also pass the kernel command line: console=ttyAMA0,115200n8 > > As far as I recall, the 2.6.35 kernel used a different console device. Yes, 2.6.35 uses ttyAM0. Mainline uses ttyAMA0 (note the extra A). Please adjust

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-06-22 Thread Fabio Estevam
Hi Rogan, On Thu, Jun 22, 2023 at 7:09 PM Rogan Dawes wrote: > > I tried to follow your suggestion, but so far I have been unsuccessful. > > I cloned Linus' latest source code, and then did: > > make ARCH=arm mxs_defconfig > make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- > cat

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-06-17 Thread Rogan Dawes
Thank you so much for the response! It is much appreciated! I do hope to get JTAG working on the Hub v1, and then will be able to try to build a modern U-Boot which I can flash. Regards, Rogan On Thu, 15 Jun 2023 at 22:01, Fabio Estevam wrote: > Hi Rogan, > > On Thu, Jun 15, 2023 at 9:00 AM

Re: Trying to boot custom kernel on Wink Hub (i.MX28)

2023-06-15 Thread Fabio Estevam
Hi Rogan, On Thu, Jun 15, 2023 at 9:00 AM Rogan Dawes wrote: > > Hi folks, > > I am trying to boot a custom kernel on a Wink Hub v1, which has an i.MX28 > CPU, and is running U-Boot (U-Boot 2014.01-14400-gda781c6-dirty (Apr 30 > 2014 - 22:35:38)). > > I have tried compiling my own modern kernel