Re: OrangePI Zero3 memory timing testing

2023-11-29 Thread Siarhei Siamashka
Hello, Please try to insert udelay() calls in addition to dsb() in the mctl_mem_matches() and see if this helps. I suspect that there's just no way to do perfectly reliable synchronization all the way from the CPU to DRAM and back in this particular scenario (which involves wacky things, such as a

Re: early stage debugging on a real product

2020-11-25 Thread Siarhei Siamashka
On Wed, Nov 25, 2020 at 5:36 PM Andy Shevchenko wrote: > > On Wed, Nov 25, 2020 at 5:23 PM Simon Glass wrote: > > On Wed, 25 Nov 2020 at 08:07, Andy Shevchenko > > wrote: > > > On Wed, Nov 25, 2020 at 4:50 PM Simon Glass wrote: > > > > On Wed, 25 Nov 2020 at 06:26, Andy Shevchenko > > > > wr

Re: [U-Boot] [PATCH] Fix unreliable detection of DRAM size on Orange Pi 3

2019-08-25 Thread Siarhei Siamashka
On Sun, 25 Aug 2019 18:12:22 +0200 Ondřej Jirman wrote: > Hello, > > On Sun, Aug 25, 2019 at 05:41:55PM +0300, Siarhei Siamashka wrote: > > On Sat, 24 Aug 2019 22:07:43 +0200 > > Ondřej Jirman wrote: > > > > > Hi Jagan, > > > > > > can

Re: [U-Boot] [PATCH] Fix unreliable detection of DRAM size on Orange Pi 3

2019-08-25 Thread Siarhei Siamashka
ease experiment with this problem a little bit more? 1. What if you just move this second DSB instruction after the second write and have two of them there? Does this also make the problem disappear? 2. What if you just replace DSB with udelay(1) / udelay(10) / udelay(100)? Does

Re: [U-Boot] [PATCH] exynos: allow SPL to build in thumb mode

2019-01-03 Thread Siarhei Siamashka
ter sporadic r0 corruption problem depending on the compiler version or optimization settings. This would be: "msr cpsr_c, r0\n\t" : : : "r0") See https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html for more details. An even better opt

Re: [U-Boot] sunxi: support multiple memory banks

2018-07-19 Thread Siarhei Siamashka
On Fri, 20 Jul 2018 04:13:24 +0300 Siarhei Siamashka wrote: > On Wed, 18 Jul 2018 23:42:07 +0200 > michael vogt wrote: > > > Hi > > > > I would like to support 4 memory chips for a sunxi board (a20). > > > > the current configuration in the sunxi-com

Re: [U-Boot] sunxi: support multiple memory banks

2018-07-19 Thread Siarhei Siamashka
o design such board using the boot0 bootloader from the Allwinner's BSP for the initial testing. And then after everything works correctly, add the necessary changes to the DRAM init code in U-boot. I could provide some help with getting this done. -- Best regards, Siarhei Siamashka _

Re: [U-Boot] [PATCH] configs: Lower Lamobo R1 DRAM clock rate to 384 MHz

2018-06-18 Thread Siarhei Siamashka
K=384 > CONFIG_MACPWR="PH23" > CONFIG_MMC0_CD_PIN="PH10" > CONFIG_SATAPWR="PB3" -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [RFC PATCH 1/3] sunxi: Extend SPL header versioning

2018-05-17 Thread Siarhei Siamashka
the SPL part does not match the main U-Boot part), then something is already very wrong. > printf("sunxi SPL version mismatch: expected %u, got %u\n", > -SPL_HEADER_VERSION, spl_header_version); > +SPL_ENV_HEADER_VERSION, spl_header_version); > return; > } > if (!spl->fel_script_address) -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v3 2/2] sunxi: binman: Add U-Boot binary size check

2018-05-01 Thread Siarhei Siamashka
future size expansions and makes it harder for the users to hurt themselves. For example, if the padded U-Boot size is 1024K while the actual size is only ~800K, then adventurous users might be tempted to fit some of their data into this gap. Yay, ~200K

Re: [U-Boot] [linux-sunxi] Re: [PATCH v2 5/6] sunxi: add code for recalculating the DRAM size in U-Boot

2018-04-03 Thread Siarhei Siamashka
(if at all)? > We can just put a warning in there, to ask users to upgrade. > That would have worked already with the v1/v2 transition, I believe. Yes, that's more or less how this was supposed to work in sunxi-tools from the very beginning. Except that we unfortunately got a bug in this code, which has been reported back in July 2017 and is still not resolved due to various reasons: https://github.com/linux-sunxi/sunxi-tools/issues/104 But hopefully it can be fixed sooner or later. > Probably worth a separate discussion with some sunxi-tools stakeholders. On the U-Boot side we can just increase the version number as long as the new header is a backwards compatible superset of the old one. In the unlikely case if we suddenly have to introduce a compatibility breaking change to the SPL header format, we can always change the SPL header signature from 'SPL' to something else. -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 1/1] arm: armv7: enable unaligned access

2018-03-29 Thread Siarhei Siamashka
se which don't support unaligned memory accesses (ARMv5, MIPS, ...). This is a maintenance nightmare. Because the people, who test their patches only on ARMv7 hardware, will unintentionally keep breaking other architectures. -- Best regards, Siarhei Siamashka

Re: [U-Boot] [PATCH 0/3] sunxi: Fix boot of Cubietruk and al.

2017-10-25 Thread Siarhei Siamashka
rs on 32-bit sunxi hardware either. For example, we can do a search in the linux-sunxi wiki to compare the usage of environment vs. boot.scr and uEnv.txt: https://linux-sunxi.org/index.php?search=saveenv https://linux-sunxi.org/index.php?search=boot.scr https://linux-sunxi.org/index.php?search=uenv.txt Using saveenv is justified only in very rare exceptional cases. They do exist, otherwise Maxime would not have encountered the problem in the first place. But I think that we should encourage Maxime to migrate away from it. I would really like to know a bit more about his use case. The Linux distributions don't seem to rely on the U-Boot environment (if I understood their feedback correctly). Our tutorials at the linux-sunxi wiki encourage the use of boot.scr since a very long time ago. Anyone is free to deviate from good practices, but they should really know what they are doing and understand that they are expected to take care of their problems themselves. > I am just thinking of whether it's worthwhile to have some transition > code, which tries multiple environment locations (first FAT, then MMC, > for instance), or even contains code to migrate from one to another. Ugh. I think that this is a very bad idea. It makes the U-Boot environment handling even more convoluted and dangerous than it is now. I would prefer to keep the U-Boot environment (when its use is justified) tightly coupled with the bootloader itself and always stored on the same boot media. We do have the boot media id passed to us from the boot ROM, so this is pretty much straightforward. Allowing to move the environment to a different media is a recipe for disaster. Currently boot.scr or uEnv.txt is loaded from FAT or other partitions as part of distro boot. Is this really not enough? -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 0/3] sunxi: Fix boot of Cubietruk and al.

2017-10-19 Thread Siarhei Siamashka
98 26492 249240 765130 baccau-boot.orig == After: == $ arm-linux-gnueabihf-size u-boot text databssdec hexfilename 366314 26492 249232 642038 9cbf6u-boot -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [linux-sunxi] [PATCH v3 1/3] video: sunxi: extract simplefb match code to a new file

2017-09-13 Thread Siarhei Siamashka
er (plus added EDID and LCD support). But it was Luc, who made it happen back in 2014 by providing a usable graphics support for the mainline kernel users and laid down the foundation for all the further incremental improvements. If not for Luc Verhaegen, we don't even know what would be the current state of the graphics support on sunxi hardware. And the number of commits does not matter, what matters is having the job done. And Luc did just that. So let's give credit where it is due. With a proper copyright notice, this patch is Acked-by: Siarhei Siamashka -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH 2/2] arm: Exercise v7_arch_cp15_set_acr even without errata fixups

2017-08-12 Thread Siarhei Siamashka
eagleBoard. As an additional bonus, we need fewer instructins and the SPL size is reduced. Signed-off-by: Siarhei Siamashka --- arch/arm/cpu/armv7/start.S | 32 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/arch/arm/cpu/armv7/start.S b/arc

[U-Boot] [PATCH 0/2] Fix get_device_type() problems

2017-08-12 Thread Siarhei Siamashka
best to revert it for now. The second patch in this series improves testing coverage and should prevent similar regressions in the future. Siarhei Siamashka (2): Revert "arm: omap: Unify get_device_type() function" arm: Exercise v7_arch_cp15_set_acr even without errata fixups a

[U-Boot] [PATCH 1/2] Revert "arm: omap: Unify get_device_type() function"

2017-08-12 Thread Siarhei Siamashka
203200 253934 3dfee spl/u-boot-spl Signed-off-by: Siarhei Siamashka Reported-by: Derald D. Woods --- arch/arm/include/asm/arch-am33xx/cpu.h | 6 ++ arch/arm/include/asm/arch-am33xx/omap.h | 3 --- arch/arm/include/asm/arch-omap3/omap.h | 3 --- arch/arm/include/asm/arch-omap4/omap.h | 1

Re: [U-Boot] [PATCH 10/14] dm: mmc: sunxi: Add support for driver model

2017-07-28 Thread Siarhei Siamashka
ed last. We obviously want something deterministic for > > >> > fastboot for example, but booting partitions of the media you started > > >> > from make sense I guess. And this is what this hack was trying to > > >> > address. > > >> > > >> OK...so what should we do here? > > > > > > I guess we should just drop the hack. We'll have to at some point > > > anyway. But I guess we should also find a way to tweak the distro > > > bootcmd at boot time to search for the medium that we booted on first. > > > > > > I'm not really sure how to do this though. You can check how this is done for USB FEL boot. Basically, we set an environment variable if we see that the boot source is FEL: http://git.denx.de/?p=u-boot.git;a=commitdiff;h=af654d14613f22f4910601d86e584030ee392b94 And then check this environment variable from bootcmd: http://git.denx.de/?p=u-boot.git;a=commitdiff;h=f3b589c09b43a231706f11ab391e5ea7f9670f12 This can be done in a pretty much the same way for eMMC. Or maybe even generalized to also use this for different boot sources and non-sunxi SoCs. > > > > Well in that case let's drop the hack and someone will pick it up when > > it hits them. > > That works for me. Deliberately breaking something just to see if some end user runs into troubles, wastes time to bisect the problem and comes up with a fix looks like a dick move. -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH v3 60/66] spl: moveconfig: migrate CONFIG_SPL_LDSCRIPT

2017-07-28 Thread Siarhei Siamashka
If this is migrated to Kconfig, then we probably want to have reasonable SoC-specific defaults there and leave defconfigs alone. > CONFIG_SPL_I2C_SUPPORT=y > # CONFIG_CMD_IMLS is not set > # CONFIG_CMD_FLASH is not set -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] arm: omap3: Detect boot mode very early

2017-07-25 Thread Siarhei Siamashka
On Tue, 25 Jul 2017 12:00:05 +0530 Lokesh Vutla wrote: > On 7/25/2017 7:38 AM, Siarhei Siamashka wrote: > > On Fri, 14 Jul 2017 08:53:20 -0500 > > Adam Ford wrote: > > > >> Fixes 4bd754d8abef ("arm: omap: Detect boot mode very early") where >

[U-Boot] CPU errata workarounds are using the SPL stack before it is initialized

2017-07-25 Thread Siarhei Siamashka
@ Set IBE bit push{r1-r5} @ Save the cpu info registers bl v7_arch_cp15_set_acr pop {r1-r5} @ Restore the cpu info - fall through skip_errata_430973: #endif -- Best regards, Siarhei Siamashka _

Re: [U-Boot] 2017.05-RC3 hanging on DM3730

2017-07-24 Thread Siarhei Siamashka
Anyway, thanks a lot for your feedback. It's good to know that DM3730 is also affected. Because this clearly rules out any possible impact of some Thumb2 errata (OMAP3530 had an old bug ridden Cortex-A8, but DM3730 has the latest revision of it). Right now the OMAP3 clock code has some sort

Re: [U-Boot] [PATCH] arm: omap3: Detect boot mode very early

2017-07-24 Thread Siarhei Siamashka
write of this OMAP_SRAM_SCRATCH_BOOT_PARAMS data happens during the whole SPL lifetime: http://git.denx.de/?p=u-boot.git;a=commitdiff;h=60c7c30aa084588ef974663be3d22a1de7f66cbb So what's going on? Can Lokesh or Paul comment? -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] net: Mark the ip_udp_hdr struct as packed

2017-07-21 Thread Siarhei Siamashka
On Fri, 21 Jul 2017 22:15:37 +0300 Siarhei Siamashka wrote: > On Wed, 12 Jul 2017 16:34:50 +0200 > Maxime Ripard wrote: > > > The -mno-unaligned-access flag used on ARM to prevent GCC from generating > > unaligned accesses (obviously) will only do so on packed structures.

Re: [U-Boot] [PATCH] net: Mark the ip_udp_hdr struct as packed

2017-07-21 Thread Siarhei Siamashka
C complains at compile time, even though the error message is not exactly intuitive: test.c:17:5: error: size of array ‘dummy_a’ is too large int dummy_a[3 - __alignof__(struct a)]; ^ -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] net: Mark the ip_udp_hdr struct as packed

2017-07-21 Thread Siarhei Siamashka
ot 32-bit aligned. Maybe we should address the > > place where that is the case instead of forcing byte-wise accesses in > > general for this structure? > > |Perhaps __attribute__((aligned(2))) can prevent byte wise accesses? > Regards, Jeroen | https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.html It says that "The aligned attribute can only increase alignment". -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] Data Abort with gcc 7.1

2017-07-12 Thread Siarhei Siamashka
STM instructions don't work with unaligned memory addresses regardless of the SCTLR.A bit. And if the compiler thinks that the pointer is supposed to be properly aligned, then it may use such instructions. A very good testcase is a simple function like this: int f(int *x) { return x[0] + x[1]; } The compiler will rightfully generate the following instructions: : 0: e899ldm r0, {r0, r3} 4: e083add r0, r3, r0 8: e12fff1ebx lr If the pointer is misaligned, then it will surely fail. > What hardware did this happen on? If it was on ARMv5, adding the packed > attribute is probably the correct fix. If it was ARMv6 or later, > something else is broken as well. It does not matter if this was ARMv6+ hardware or not. The current U-Boot code is wrong and we need to fix it. -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] Data Abort with gcc 7.1

2017-07-12 Thread Siarhei Siamashka
ons.com/ is awesome and I eagerly > > await gcc-7.x toolchains there if I can't get something else spun up in > > a chroot soon :) > > So there’s the remaining question of how to fix this permanently: > — with my compiler engineering hat on, I’d recommend to mark this > as a packed struct, as that’s what it is: the compiler needs to keep it > packed, because that is how it is received/sent on the wire > — rereading the doc/README.unaligned-memory-access.txt, the > preferred solution in U-Boot would be to use put/get_unaligned to > access these fields (although I have concerns with this—see below). > > I honestly wonder if the recommendation (to avoid ‘packed’) from the > README is appropriate for many of the data structure declarations in > U-Boot which deal with the external representation of data (i.e. DMA > descriptors, memory-mapped register files and data sent on a wire): > the C language does not offer any protection against a compiler adding > patting between structure members, as it sees fit. The original wording > from the standard is: > 14Each non-bit-field member of a structure or union object is aligned in > an implementation-defined manner appropriate to its type. > 15Within a structure object, the non-bit-field members and the units in > which bit-fields reside have addresses that increase in the order in which > they are declared. A pointer to a structure object, suitably converted, > points to its initial member (or if that member is a bit-field, then to the > unit in which it resides), and vice versa. There may be unnamed padding > within a structure object, but not at its beginning. > > In other words: there’s nothing in the standard from stopping a compiler > to insert additional padding within structures, unless the ‘packed’ attribute > is added. I would strongly advise against adding the "packed" attribute everywhere unnecessarily. This just makes the code bigger and slower. The ANSI/ISO C language standard indeed leaves a lot up to the implementation. But we also have ABI documents for each platform, which cover all of these details. We just need to use them. In the case of 32-bit ARM, it is http://infocenter.arm.com/help/topic/com.arm.doc.ihi0042e/IHI0042E_aapcs.pdf In the case of 64-bit ARM, it is http://infocenter.arm.com/help/topic/com.arm.doc.ihi0055b/IHI0055B_aapcs64.pdf -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] Data Abort with gcc 7.1

2017-07-12 Thread Siarhei Siamashka
it does, so I'm a bit confused, > and not really sure what to do from there. The --wno-unaligned-access option does not help because the compiler assumes that the struct pointer is properly aligned. This bug can be fixed by either: 1) Always ensure proper alignment of the udp pa

Re: [U-Boot] [PATCH 1/2] mmc: sunxi: Support the new mode

2017-07-12 Thread Siarhei Siamashka
gt; + val = CCM_MMC_CTRL_OCLK_DLY(oclk_dly) | > CCM_MMC_CTRL_SCLK_DLY(sclk_dly); > + } > + > + writel(CCM_MMC_CTRL_ENABLE| pll | CCM_MMC_CTRL_N(n) | > CCM_MMC_CTRL_M(div) | val, > +mmchost->mclkreg); > > debug("mmc %u set mod-clk req %u parent %u n %u m %u rate %u\n", > mmchost->mmc_no, hz, pll_hz, 1u << n, div, -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH] sunxi: usb_phy: Fix the phy_ctl offset on the A83T

2017-07-12 Thread Siarhei Siamashka
ay end up with a wrong default without noticing. -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] Pull request: u-boot-sunxi/master

2017-06-16 Thread Siarhei Siamashka
dr3_1333.c > create mode 100644 arch/arm/mach-sunxi/dram_timings/lpddr3_stock.c > create mode 100644 configs/nanopi_m1_plus_defconfig > create mode 100644 configs/nanopi_neo2_defconfig > create mode 100644 configs/orangepi_win_defconfig > create mode 100644 con

Re: [U-Boot] [linux-sunxi] [PATCH v2 00/12] Big work on sunxi DW DRAM controllers and some new DDR type support

2017-06-08 Thread Siarhei Siamashka
dw.c} (84%) > create mode 100644 arch/arm/mach-sunxi/dram_timings/Makefile > create mode 100644 arch/arm/mach-sunxi/dram_timings/ddr2_v3s.c > create mode 100644 arch/arm/mach-sunxi/dram_timings/ddr3_1333.c > create mode 100644 arch/arm/mach-sunxi/dram_timings/lpddr3_stock.c > cre

Re: [U-Boot] Ethernet not detecting on Odroid u3

2017-03-14 Thread Siarhei Siamashka
On Tue, 14 Mar 2017 20:06:42 +0530 Anand Moon wrote: > On 14 March 2017 at 15:24, Siarhei Siamashka > wrote: > > You can just clone my git branch: > > > >git clone -b 20170306-unbreak-odroid https://github.com/ssvb/u-boot.git > > > > Then compile it and

Re: [U-Boot] Ethernet not detecting on Odroid u3

2017-03-14 Thread Siarhei Siamashka
On Tue, 14 Mar 2017 18:01:11 +0900 Jaehoon Chung wrote: > On 03/14/2017 04:52 PM, Siarhei Siamashka wrote: > > On Mon, 6 Mar 2017 12:18:50 +0200 > > Siarhei Siamashka wrote: > > > >> On Thu, 12 Jan 2017 14:02:48 +0530 > >> Anand Moon wrote: >

Re: [U-Boot] Ethernet not detecting on Odroid u3

2017-03-14 Thread Siarhei Siamashka
On Tue, 14 Mar 2017 14:44:26 +0530 Anand Moon wrote: > Hi Siarhei/Jaehoon > > On 14 March 2017 at 14:31, Jaehoon Chung wrote: > > On 03/14/2017 04:52 PM, Siarhei Siamashka wrote: > >> On Mon, 6 Mar 2017 12:18:50 +0200 > >> Siarhei Siamashka wrote: > >

Re: [U-Boot] Ethernet not detecting on Odroid u3

2017-03-14 Thread Siarhei Siamashka
On Mon, 6 Mar 2017 12:18:50 +0200 Siarhei Siamashka wrote: > On Thu, 12 Jan 2017 14:02:48 +0530 > Anand Moon wrote: > > > Hi All, > > > > I tried to compile the latest u-boot for Odroid U3. > > issue is that Ethernet is not able to detected. > > > &g

Re: [U-Boot] [PATCH 2/2] arm: omap3: Bring back ARM errata workaround 725233

2017-03-10 Thread Siarhei Siamashka
On Wed, 8 Mar 2017 09:30:07 -0500 Tom Rini wrote: > On Mon, Mar 06, 2017 at 03:16:53AM +0200, Siarhei Siamashka wrote: > > > The workaround for ARM errata 725233 had been lost since > > commit 45bf05854bc94e (armv7: adapt omap3 to the new cache > > maintenance framework)

Re: [U-Boot] [PATCH] arm: cache: exit maintenance functions when cache disabled

2017-03-10 Thread Siarhei Siamashka
cache. If there is a cache hit, the cache is read or updated in the same way as if the cache is enabled. This enables Cacheable memory to remain fully coherent while the cache is disabled. While the cache is disabled, it remains fully coherent with the L2 cache and the other L1 data caches."

Re: [U-Boot] [PATCH 1/1] arm: Migrate SYS_THUMB_BUILD to Kconfig, introduce SPL_SYS_THUMB_BUILD

2017-03-06 Thread Siarhei Siamashka
On Mon, 6 Mar 2017 17:54:17 -0500 Tom Rini wrote: > On Tue, Mar 07, 2017 at 12:44:59AM +0200, Siarhei Siamashka wrote: > > Hi Tom, > > > > On Mon, 6 Mar 2017 13:50:10 -0500 > > Tom Rini wrote: > > > > > Today, we have cases where we wish to bui

Re: [U-Boot] [RFC] odroid: Add support for the ODROID-X board variant

2017-03-06 Thread Siarhei Siamashka
Hello, On Fri, 23 Oct 2015 19:53:28 +0900 Minkyu Kang wrote: > Dear Siarhei Siamashka, > > On 20/10/15 08:39, Siarhei Siamashka wrote: > > ODROID-X uses a slightly older revision of the same base board > > as the ODROID-X2. But the CPU module in ODROID-X uses an older &

Re: [U-Boot] sdhci_transfer_data: Error detected in status(0x208002) problem on Tiny4412 board

2017-03-06 Thread Siarhei Siamashka
tem... > ** Unrecognized filesystem type ** > Wrong Image Format for bootm command > ERROR: can't get kernel image!* > > If someone knows how to fix this bug, please help me! > > Thanks a lot! Hello, Yes, it's a known problem. You could even easily find the information about it in google. This was posted to the U-Boot mailing list some years ago: https://lists.denx.de/pipermail/u-boot/2015-October/230749.html Jaehoon Chung promised to have a look at it, but we haven't heard anything back since then. Right now you can try to apply this patch and check if it helps (essentially a revert of a276172cf32386c211c75638f6bf3c0d59ba03ba): https://github.com/ssvb/u-boot/commit/3dd6fdb016c088953f5f293d62d6df03a0f48d54 BTW, I can't seem to find any Tiny4412 board support code in the current U-Boot git master branch. Are you using a patched U-Boot? And if yes, then do you have plans to contribute these patches? Thanks. -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 1/1] arm: Migrate SYS_THUMB_BUILD to Kconfig, introduce SPL_SYS_THUMB_BUILD

2017-03-06 Thread Siarhei Siamashka
symbol as well, SPL_SYS_THUMB_BUILD to > control if we build everything or just SPL (or in theory, just U-Boot) in > Thumb2 mode. > > Signed-off-by: Tom Rini [...] -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de htt

Re: [U-Boot] Ethernet not detecting on Odroid u3

2017-03-06 Thread Siarhei Siamashka
nfirm that it works on your ODROID-U3, then I can maybe spend some time on making cleaner patches and ensuring that they reach the U-Boot git repository. Thanks! -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] BeagleBoard B7 (OMAP3530) fails to boot with the current U-Boot master branch

2017-03-05 Thread Siarhei Siamashka
On Sun, 5 Mar 2017 09:27:44 -0500 Tom Rini wrote: > On Sun, Mar 05, 2017 at 02:51:54PM +0200, Siarhei Siamashka wrote: > > Hello All, > > > > I have just unexpectedly found an old Beagleboard B7 in my closet and > > tried to compile the current U-Boot master branch

[U-Boot] [PATCH 2/2] arm: omap3: Bring back ARM errata workaround 725233

2017-03-05 Thread Siarhei Siamashka
OMAP3530 hardware. This patch adds the new errata define to the whitelist instead of introducing a new Kconfig option. It's probably best to convert all ARM errata to Kconfig in one go via a separate patch. Signed-off-by: Siarhei Siamashka --- arch/arm/cpu/armv7/start.S

[U-Boot] [PATCH 1/2] arm: omap3: Compile clock.c with -marm option to unbreak OMAP3530

2017-03-05 Thread Siarhei Siamashka
ach-omap2/omap3/clock.c'. This patch enforces the compilation of clock.c source file in ARM mode and makes the deadlock disappear. We are yet to figure out the root cause of the problem. Still this is somewhat better than having non-bootable boards for years. Signed-off-by: Siarhei Siamashka ---

[U-Boot] [PATCH 0/2] Unbreak OMAP3530

2017-03-05 Thread Siarhei Siamashka
OMAP3530 lost the erratum 725233 workaround since 2011 and even became completely non-bootable since 2015. These two patches make it usable again. The most notable hardware is the original BeagleBoard. Siarhei Siamashka (2): arm: omap3: Compile clock.c with -marm option to unbreak OMAP3530

[U-Boot] BeagleBoard B7 (OMAP3530) fails to boot with the current U-Boot master branch

2017-03-05 Thread Siarhei Siamashka
in the AUXCR) as a workaround for the most nasty erratum (657417: A 32-bit branch instruction that spans two 4K regions can result in an incorrect operation) just because I don't fully trust the linker. -- Best regards, Siarhei Siamashka ___

Re: [U-Boot] [RFC PATCH 05/11] tools: mksunxiboot: allow larger SPL binaries

2017-01-20 Thread Siarhei Siamashka
< 0) { > + perror("Open output file"); > + return EXIT_FAILURE; > + } > } > > /* read file to buffer to calculate checksum */ > @@ -115,7 +140,7 @@ int main(int argc, char *argv[]) >& 0x00FF);

Re: [U-Boot] [RFC PATCH 08/11] sunxi: SPL: add FIT config selector for Pine64 boards

2017-01-20 Thread Siarhei Siamashka
atch() function in some way. Then the sun50i-a64-pine64 device tree file can specify that this board is expected to have exactly 512 MiB of RAM. Having this information, the board_fit_config_name_match() function will fail to match it if the actual RAM size is wrong. This approach is similar to wh

Re: [U-Boot] [linux-sunxi] [PATCH] sunxi: fix SID read on H3

2016-12-23 Thread Siarhei Siamashka
ID controller, in order to get > + * the correct value, and also refresh the wrong value at > + * SUNXI_SID_BASE. > + */ > + int i; > + > + for (i = 0; i< 4; i++) > + sid[i] = sun8i_efuse_read(i * 4); > + > + return 0; > #elif defined

Re: [U-Boot] [PATCH v2 04/23] SPL: tiny-printf: add "l" modifier

2016-12-05 Thread Siarhei Siamashka
num = va_arg(va, unsigned long); > + div = 1UL << (sizeof(long) * 8 - 4); > + } else { > + num = va_arg(va, unsigned int); > + div = 0x1000; > + } > if (!num) { > out_dgt(info, 0); > } else { > - for (div = 0x1000; div; div /= 0x10) > + for (; div; div /= 0x10) > div_out(info, &num, div); > } > break; -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 05/24] SPL: tiny-printf: add "l" modifier

2016-11-23 Thread Siarhei Siamashka
} else { > + num = va_arg(va, unsigned int); > + div = 0x1000; > + } > if (!num) { > out_dgt(info, 0); > } else { > - for (div = 0x1000; div; div /= 0x10) > + for (; div; div /= 0x10) > div_out(info, &num, div); > } > break; -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 02/24] sun6i: Restrict some register initialization to Allwinner A31 SoC

2016-11-23 Thread Siarhei Siamashka
f (IS_ENABLED(CONFIG_MACH_SUN6I)) writel(MBUS_CLK_DEFAULT, &ccm->mbus1_clk_cfg); This saves one line of code and also looks a bit less ugly. -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 08/24] armv8: add simple sdelay implementation

2016-11-23 Thread Siarhei Siamashka
t; + * not inline to increase chances its in cache when called > > + */ > > +void sdelay(unsigned long loops) > > +{ > > + __asm__ volatile ("1:\n" "subs %0, %1, #1\n" > > +

Re: [U-Boot] [PATCH 08/24] armv8: add simple sdelay implementation

2016-11-23 Thread Siarhei Siamashka
https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html page provides some information. > +} > + > int cleanup_before_linux(void) > { > /* -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] drivers: SPI: sunxi SPL: fix warning

2016-11-14 Thread Siarhei Siamashka
n be always contributed later. There is also the SPL size concern and we don't want to unnecessarily increase the code size. -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] drivers: SPI: sunxi SPL: fix warning

2016-11-14 Thread Siarhei Siamashka
line before committing. > > Making things checkpatch clean is good, in the future please also > mention that in commit messages. Thanks! How can I get this checkpatch warning? $ scripts/checkpatch.pl 0001-sunxi-Support-booting-from-SPI-flash.patch total: 0 errors, 0 warnings, 0 checks, 361 lines checked NO

Re: [U-Boot] [PATCH v2 2/2] image: Protect against overflow in unknown_msg()

2016-10-27 Thread Siarhei Siamashka
(msg) - 1); "man strncat" on my system says: char *strncat(char *dest, const char *src, size_t n); ... If src contains n or more bytes, strncat() writes n+1 bytes to dest (n from src plus the terminating null byte). Therefore, the size of dest must be

Re: [U-Boot] [PATCH v3 03/29] Convert CONSOLE_PRE_CONSOLE_BUFFER options to Kconfig

2016-09-29 Thread Siarhei Siamashka
t a/include/configs/tbs2910.h b/include/configs/tbs2910.h > index 85501bc..ddd53dd 100644 > --- a/include/configs/tbs2910.h > +++ b/include/configs/tbs2910.h > @@ -50,10 +50,6 @@ > #define CONFIG_CONSOLE_MUX > #define CONFIG_CONS_INDEX1 > > -#define CONFIG_

Re: [U-Boot] [PATCH 1/4] Revert "sunxi: Move the SPL stack top to 0x1A000 on Allwinner A64/A80"

2016-09-08 Thread Siarhei Siamashka
On Mon, 5 Sep 2016 09:23:00 +0100 Andre Przywara wrote: > Hi, > > On 05/09/16 05:12, Siarhei Siamashka wrote: > > On Mon, 5 Sep 2016 01:32:38 +0100 > > Andre Przywara wrote: > > > >> This commit moved the SPL stack into SRAM C, which worked when the SPL

Re: [U-Boot] [PATCH 4/4] sunxi: fix 64-bit compiler warning for SPL header parsing

2016-09-04 Thread Siarhei Siamashka
, > + himport_r(&env_htab, (char *)(uintptr_t)spl->fel_script_address, > spl->fel_uEnv_length, '\n', H_NOCLEAR, 0, 0, NULL); > return; > } Reviewed-by: Siarhei Siamashka -- Best regards, Siarhei Siamashka _

Re: [U-Boot] [PATCH 2/4] Revert "sunxi: Downclock AHB1 to 100MHz on Allwinner A64"

2016-09-04 Thread Siarhei Siamashka
3190 /* > AHB1=PLL6/6,APB1=AHB1/2 */ > -#else > #define AHB1_ABP1_DIV_DEFAULT0x3180 /* > AHB1=PLL6/3,APB1=AHB1/2 */ > -#endif > > #define AXI_GATE_OFFSET_DRAM 0 > -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 1/4] Revert "sunxi: Move the SPL stack top to 0x1A000 on Allwinner A64/A80"

2016-09-04 Thread Siarhei Siamashka
enable some other features too. > This reverts commit 1a83fb4a17d959d7b037999ab7ed7e62429abe34 > and fixes booting the Pine64 when using boot0. > > Signed-off-by: Andre Przywara But as discussed earlier, reverting this patch is a reasonable solution for v2016.09, so it is Reviewed-b

[U-Boot] [PATCH] ARM: Respect CONFIG_SPL_STACK define in lowlevel_init.S

2016-09-04 Thread Siarhei Siamashka
not safely accessible by the SPL (such as the DRAM), causes a very early SPL deadlock. Signed-off-by: Siarhei Siamashka --- arch/arm/cpu/armv7/lowlevel_init.S | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/cpu/armv7/lowlevel_init.S b/arch/arm/cpu/armv7/lowlevel_init.S index

Re: [U-Boot] pine64 and "sunxi: Move the SPL stack top to 0x1A000 on Allwinner A64/A80"

2016-08-04 Thread Siarhei Siamashka
Hey guys, > > > > > > > > I just started trying out my Pine64 1GB and mainline U-Boot and I've > > > > found that: > > > > commit 1a83fb4a17d959d7b037999ab7ed7e62429abe34 > > > > Author: Siarhei Siamashka > > > &

Re: [U-Boot] [PATCH v2] sun8i: On H3 Use words 1-3 instead of just word 3 from the SID

2016-07-29 Thread Siarhei Siamashka
ood. > + */ > + sid[3] ^= sid[1] ^ sid[2]; > +#endif > + > /* Ensure the NIC specific bytes of the mac are not all 0 */ > if ((sid[3] & 0xff) == 0) > sid[3] |= 0x800000; Using XOR is

Re: [U-Boot] [PATCH 3/4] sun8i: On H3 Use word 1 instead of word 3 from the SID

2016-07-29 Thread Siarhei Siamashka
Hi, On Thu, 28 Jul 2016 20:35:21 +0200 Hans de Goede wrote: > Hi, > > On 28-07-16 05:13, Chen-Yu Tsai wrote: > > Hi, > > > > On Thu, Jul 28, 2016 at 3:14 AM, Siarhei Siamashka > > wrote: > >> Hello Hans, > >> > >> On Wed, 27 Jul 20

Re: [U-Boot] [PATCH 3/4] sun8i: On H3 Use word 1 instead of word 3 from the SID

2016-07-27 Thread Siarhei Siamashka
e accounted for. Also changing the MAC address generation algorithm is an invasive change, which is affecting the end users. So IMHO it's best to have it implemented properly right from the start, rather than evolving via a trial and error method. What if it turns out that word1 from the SID is actually not sufficiently random on H3? How large was your sample set? -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2] sunxi: Support booting from SPI flash

2016-06-09 Thread Siarhei Siamashka
On Thu, 9 Jun 2016 19:42:55 -0700 Simon Glass wrote: > Hi, > > On 9 June 2016 at 18:33, Siarhei Siamashka > wrote: > > Hi Simon, > > > > On Thu, 9 Jun 2016 17:36:10 -0700 > > Simon Glass wrote: > > > >> Hi, > >>

Re: [U-Boot] [PATCH v2] sunxi: Support booting from SPI flash

2016-06-09 Thread Siarhei Siamashka
Hi Simon, On Thu, 9 Jun 2016 17:36:10 -0700 Simon Glass wrote: > Hi, > > On 7 June 2016 at 05:28, Siarhei Siamashka > wrote: > > Allwinner devices support SPI flash as one of the possible > > bootable media type. The SPI flash chip needs to be connected > > to S

Re: [U-Boot] [PATCH v2] sunxi: Add the ability to recognize and auto-import uEnv-style data

2016-06-08 Thread Siarhei Siamashka
l"). > > > > Signed-off-by: Bernhard Nortmann > > This patch looks good to me. > > Siarhei any comments from your side ? If not then I'll add this to > u-boot-sunxi/next. Yes, it also looks good to me: Acked-by: Siarhei Siamashka The only nitpick is about

Re: [U-Boot] [linux-sunxi] Re: [PATCH v2] sunxi: Support booting from SPI flash

2016-06-08 Thread Siarhei Siamashka
Hello, On Wed, 8 Jun 2016 02:56:41 -0700 (PDT) boob...@gmail.com wrote: > Hello > > Nice to see new entry to boot. > I would like to know if sdcard wired in spi mode can working with > this spi boot support. No, it can't. The SPI protocol used by the SD card is different from the SPI protocol u

Re: [U-Boot] [PATCH] sunxi: Add the ability to pass (script) filesize in the SPL header

2016-06-07 Thread Siarhei Siamashka
Hello, On Tue, 7 Jun 2016 16:09:58 +0200 Bernhard Nortmann wrote: > Hello Siarhei! > > Am 06.06.2016 um 11:20 schrieb Siarhei Siamashka: > > On Sun, 5 Jun 2016 15:01:30 +0200 > > Bernhard Nortmann wrote: > > > >> Hi Siarhei! > >> > >

[U-Boot] [PATCH v2] sunxi: Support booting from SPI flash

2016-06-07 Thread Siarhei Siamashka
: Siarhei Siamashka --- Changes in v2: - Add Kconfig option (CONFIG_SPL_SPI_SUNXI) and move the SPI flash support code into a separate source file - Use CONFIG_SYS_SPI_U_BOOT_OFFS instead of the hardcoded constant - Deinitialize the SPI controller and undo pin muxing after the job is done

Re: [U-Boot] [PATCH] sunxi: Add the ability to pass (script) filesize in the SPL header

2016-06-06 Thread Siarhei Siamashka
On Sun, 5 Jun 2016 15:01:30 +0200 Bernhard Nortmann wrote: > Hi Siarhei! > > Am 05.06.2016 um 13:44 schrieb Siarhei Siamashka: > > Hello Bernhard, > > > > [...] > > How does this work in general with "boot.scr" and "uEnv.txt" use > &g

Re: [U-Boot] [PATCH] sunxi: Add the ability to pass (script) filesize in the SPL header

2016-06-05 Thread Siarhei Siamashka
setenv("filesize", NULL); I have no real opinion about this, but "filesize" looks like a rather generic name for this environment variable. Are there some advantages/disadvantages picking this particular name instead of something like "fel_scriptsize"? > +

[U-Boot] [PATCH v1] sunxi: Support booting from SPI flash

2016-06-04 Thread Siarhei Siamashka
SPI flash. The offset of the main U-Boot binary is assumed to be 0x8000. The existing SPI frameworks are not used in order to reduce the code size in the SPL. Tested on the Orange Pi PC (Allwinner H3) and A13-OLinuXino-Micro (Allwinner A13) boards. Signed-off-by: Siarhei Siamashka --- arch/arm

Re: [U-Boot] [PATCH v2] sunxi: Increase SPL header size to 64 bytes to avoid code corruption

2016-06-02 Thread Siarhei Siamashka
hat the boot ROM in the future Allwinner SoCs starts patching even more bytes in the header or moves this boot device id variable to some other address. If/when this happens, we can always update the SPL header format (do the "major" version change trick). > Other then that worry, I see no

[U-Boot] [RFC] sunxi: Store the device tree name in the SPL header

2016-06-02 Thread Siarhei Siamashka
upgrades. The size of the SPL header is also increased from 64 bytes to 96 bytes to provide enough space for the device tree name string. Signed-off-by: Siarhei Siamashka --- arch/arm/include/asm/arch-sunxi/spl.h | 26 +++-- include/configs/sunxi-common.h| 12 +++---

Re: [U-Boot] [linux-sunxi] [PATCH v2 7/7] spl: nand: sunxi: add support for NAND config auto-detection

2016-06-01 Thread Siarhei Siamashka
areful about using up this reserve, to ensure that it is well spent on something useful (such as NAND support) instead of being just wasted by the bloatware cultists :-) [1] http://lists.denx.de/pipermail/u-boot/2015-September/226963.html -- Best regards, Siarhei Siamashka _

Re: [U-Boot] [PATCH 1/2] sunxi: Downclock AHB1 to 100MHz on Allwinner A64

2016-05-30 Thread Siarhei Siamashka
On Tue, 31 May 2016 01:48:05 +0300 Siarhei Siamashka wrote: > Currently the AHB1 clock speed is configured as 200MHz by > the SPL, but this causes a subtle and hard to reproduce data > corruption in SRAM C (for example, this can't be easily > detected with a trivial memset/memcm

[U-Boot] [PATCH 1/2] sunxi: Downclock AHB1 to 100MHz on Allwinner A64

2016-05-30 Thread Siarhei Siamashka
A64 yet and it should not affect the boot0 usage (unless somebody can confirm SRAM C corruption with the boot0 too). Signed-off-by: Siarhei Siamashka --- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/include/asm/arch-sunxi/clock_su

[U-Boot] [PATCH 0/2] sunxi: Fix SRAM C corruption issue on Allwinner A64

2016-05-30 Thread Siarhei Siamashka
and trying to use the SRAM C on A64 as a temporary buffer (after loading the U-Boot SPL with the hope to gain more speed from the higher CPU and AHB clock speeds). Siarhei Siamashka (2): sunxi: Downclock AHB1 to 100MHz on Allwinner A64 sunxi: Move the SPL stack top to 0x1A000 on Allwinner A64

[U-Boot] [PATCH 2/2] sunxi: Move the SPL stack top to 0x1A000 on Allwinner A64/A80

2016-05-30 Thread Siarhei Siamashka
the availability of 8 KiB stack. Signed-off-by: Siarhei Siamashka --- include/configs/sunxi-common.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index b33cfb8..94275a7 100644 --- a/include/configs/sunxi

Re: [U-Boot] [PATCH] sunxi: Increase the SPL header size to 48 bytes to avoid code corruption

2016-05-13 Thread Siarhei Siamashka
On Sat, 14 May 2016 03:14:25 +0300 Siarhei Siamashka wrote: > The current SPL header, created by the 'mksunxiboot' tool, has size > 32 bytes. But the code in the boot ROM stores the information about > the boot media at the offset 0x28 before passing control to the SPL.

[U-Boot] [PATCH v2] sunxi: Increase SPL header size to 64 bytes to avoid code corruption

2016-05-13 Thread Siarhei Siamashka
type can be later used in the 'spl_boot_device' function, but this is out of the scope of this patch. Signed-off-by: Siarhei Siamashka --- Changes in v2: - Increase the header size to 64 bytes instead of 48 bytes in order to satisfy the VBAR alignment requirements. arch/arm/inclu

[U-Boot] [PATCH] sunxi: Increase the SPL header size to 48 bytes to avoid code corruption

2016-05-13 Thread Siarhei Siamashka
type can be later used in the 'spl_boot_device' function, but this is out of the scope of this patch. Signed-off-by: Siarhei Siamashka --- arch/arm/include/asm/arch-sunxi/spl.h | 8 +++- include/configs/sunxi-common.h| 12 ++-- 2 files changed, 13 insertions(+), 7 del

Re: [U-Boot] [PATCH] sunxi: mctl_mem_matches: Add missing memory barrier

2016-04-14 Thread Siarhei Siamashka
FIG_SYS_SDRAM_BASE + offset); > + DSB; > /* Check if the same value is actually observed when reading back */ > return readl(CONFIG_SYS_SDRAM_BASE) == > readl((ulong)CONFIG_SYS_SDRAM_BASE + offset); -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [linux-sunxi] A10 bring up and DRAM configuration procedure

2016-04-03 Thread Siarhei Siamashka
le could be a good idea. > [1] > http://www.micron.com/~/media/Documents/Products/Data%20Sheet/DRAM/DDR3/1Gb_DDR3_SDRAM.pdf > [2] > http://git.denx.de/?p=u-boot.git;a=blob;f=lib/crc32.c;h=97592124867abb815d576899f8789545c3aef1aa;hb=HEAD#l200 > [

Re: [U-Boot] [PATCH] sunxi: fix DCDC2 output in CHIP_defconfig

2016-03-07 Thread Siarhei Siamashka
NS_INDEX=2" > # CONFIG_CMD_IMLS is not set > CONFIG_CMD_GPIO=y > -CONFIG_AXP_DCDC2_VOLT=1300 > CONFIG_AXP_ALDO3_VOLT=3300 > CONFIG_AXP_ALDO4_VOLT=3300 > CONFIG_USB_MUSB_GADGET=y -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] sunxi: power: add support for sy8106a driver

2016-02-10 Thread Siarhei Siamashka
gt; +#if defined CONFIG_AXP152_POWER || defined CONFIG_AXP209_POWER || \ > +defined CONFIG_SY8106A_POWER > #define CONFIG_SPL_I2C_SUPPORT > #endif > > @@ -240,7 +241,8 @@ extern int soft_i2c_gpio_scl; > > /* PMU */ > #if defined CONFIG_AXP152_POWER || defined CONFI

Re: [U-Boot] [linux-sunxi] Re: PSCI for H3

2015-12-23 Thread Siarhei Siamashka
On Wed, 23 Dec 2015 22:36:19 +0800 Chen-Yu Tsai wrote: > On Wed, Dec 23, 2015 at 6:14 PM, Siarhei Siamashka > wrote: > > On Tue, 17 Nov 2015 15:32:30 +0100 > > Jens Kuske wrote: > > > >> On 16/11/15 07:26, Chen-Yu Tsai wrote: > >> > Hi everyone

Re: [U-Boot] [linux-sunxi] Re: PSCI for H3

2015-12-23 Thread Siarhei Siamashka
if (!node) + node = of_find_compatible_node(NULL, NULL, + "allwinner,sun8i-h3-cpuconfig"); if (!node) { pr_err("Missing A31 CPU config node in the device tree\n"); return; -- 2.4.10 -- Best regards, Siarhei Siamashka ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH] sunxi: clock: Set AHB1 clock frequency to 200MHz on Allwinner H3

2015-11-19 Thread Siarhei Siamashka
ng via FEL. This patch can increase the FEL USB transfer speed from ~510 KB/s to ~950 KB/s. Signed-off-by: Siarhei Siamashka --- This is intended to be used together with the Allwinner H3 patches from Jens Kuske: http://lists.denx.de/pipermail/u-boot/2015-November/234589.html Allwinner A83T

Re: [U-Boot] [PATCH 0/2] Enable DFU for RAM on Allwinner devices

2015-10-27 Thread Siarhei Siamashka
On Wed, 28 Oct 2015 00:27:48 +0100 Piotr Król wrote: > On Tue, Oct 27, 2015 at 06:31:24AM +0200, Siarhei Siamashka wrote: > > On Mon, 26 Oct 2015 12:18:35 +0100 > > Piotr Król wrote: > > > > > On Sun, Oct 25, 2015 at 06:44:45AM +0200, Siarhei

[U-Boot] [PATCH] mmc: Use lldiv() for 64-bit division in write_raw_image()

2015-10-27 Thread Siarhei Siamashka
ber/230314.html http://lists.denx.de/pipermail/u-boot/2015-October/231908.html Signed-off-by: Siarhei Siamashka --- I have only tested that the compilation problem disappears for me. It would be best if somebody could confirm whether the fix is correct. common/fb_mmc.c | 3 ++- 1 file

Re: [U-Boot] [PATCH 0/2] Enable DFU for RAM on Allwinner devices

2015-10-26 Thread Siarhei Siamashka
On Mon, 26 Oct 2015 12:18:35 +0100 Piotr Król wrote: > On Sun, Oct 25, 2015 at 06:44:45AM +0200, Siarhei Siamashka wrote: > > Hello, > > > > DFU allows to transfer large files (such as initrd images) much > > faster than FEL. > > > > Siarhei Siamash

  1   2   3   4   >