Re: readling, ctrl-u is not working like linux console
> > In some shells, like mksh, the default behaviour of ctrl-u is to kill the > whole line. But then it's not called unix-line-discard, and I don't think > mksh uses readline, either. The "standard" is probably just readline, though > it makes me wonder where the "unix" came from… Hi, to avoid run into this issues: > The program in a Unix-like system that allocates machine resources and talks > to the hardware is called the “kernel”. GNU is typically used with a kernel > called Linux. This combination is the GNU/Linux operating system. GNU/Linux > is used by millions, though many call it “Linux” by mistake. I think it is better to descript it what it ctrl-u does: Kill backward from the cursor to the beginning of the current line. :) Regards, duhuanpeng ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
Re: readling, ctrl-u is not working like linux console
> > FWIW, in bash on both my tty2 and urxvt, Ctrl-U clears the whole line. did you try to move your cursor in the middle of a line. I guess my bash use this keybinds: [1] https://www.gnu.org/software/bash/manual/bash.html#Bindable-Readline-Commands 8.4.4 Killing And Yanking kill-line (C-k) Kill the text from point to the end of the line. backward-kill-line (C-x Rubout) Kill backward from the cursor to the beginning of the current line. unix-line-discard (C-u) Kill backward from the cursor to the beginning of the current line. kill-whole-line () Kill all characters on the current line, no matter where point is. By default, this is unbound. Regards, duhuanpeng ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH] readline: make ctrl-u to work like linux console
> currtly, the ctrl-u discards the whole line, in most linux > boxes, ctrl-u just remove character before cursor. > this patch make ctrl-u to do this. Hello, sorry for the typo, it should be characters. Regards, duhuanpeng ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
readling, ctrl-u is not working like linux console
Hi, I find it the barebox console's ctrl-u is not working like my linux host. for now, the barebox's ctrl-u discard the whole line. but the linux consle just remove characters before cursor. is the barebox ctrl-u follows any standard, if not, how about make it just works like linux(ah, it is gnu readline) does. Regards, duhuanpeng ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH] fix compile error when set CONFIG_CONSOLE_SIMPLE=y
Hi, my patch didn't work with sanbox. maybe I missed understand the macro ARCH_HAS_CTRLC I will fix it and send a new patch soon. sorry. du huanpeng ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
Re: compile error report: CONFIG_CONSOLE_SIMPLE=y
>From 13cf76cfb965abac9433447c71f46d6c7abb0c50 Mon Sep 17 00:00:00 2001 From: DU HUANPENG Date: Thu, 3 Oct 2019 21:27:40 +0800 Subject: [PATCH] fix compile error when set CONFIG_CONSOLE_SIMPLE=y Signed-off-by: DU HUANPENG --- common/console_simple.c | 12 1 file changed, 12 insertions(+) diff --git a/common/console_simple.c b/common/console_simple.c index 385da2f..010e0b3 100644 --- a/common/console_simple.c +++ b/common/console_simple.c @@ -65,6 +65,9 @@ void console_flush(void) EXPORT_SYMBOL(console_flush); #ifndef ARCH_HAS_CTRLC +void ctrlc_handled(void) +{ +} /* test if ctrl-c was pressed */ int ctrlc (void) { @@ -73,6 +76,15 @@ int ctrlc (void) return 0; } EXPORT_SYMBOL(ctrlc); + +void console_ctrlc_allow(void) +{ +} + +void console_ctrlc_forbid(void) +{ +} + #endif /* ARCH_HAS_CTRC */ int console_register(struct console_device *newcdev) -- 2.7.4 ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
compile error report: CONFIG_CONSOLE_SIMPLE=y
Hello, I cloned the lastest version(2019.10.3) of barebox, compile error when set CONFIG_CONSOLE_SIMPLE=y compile log: (more logs...) ENVHdefaultenv/barebox_default_env.h CC defaultenv/defaultenv.o ENV defaultenv/defaultenv-2-base.bbenv ENV.S defaultenv/defaultenv-2-base.bbenv.S AS defaultenv/defaultenv-2-base.bbenv.o LD defaultenv/built-in.o PBLLD defaultenv/built-in-pbl.o ENVZdefaultenv/barebox_zero_env GEN .version CHK include/generated/compile.h UPD include/generated/compile.h CC common/version.o LD common/built-in.o PBLCC common/pbl-imd-barebox.o PBLLD common/built-in-pbl.o LD barebox common/built-in.o: In function `run_init': common/startup.c:(.text.run_init+0x210): undefined reference to `console_ctrlc_allow' common/built-in.o: In function `run_shell': (.text.run_shell+0x44): undefined reference to `ctrlc_handled' Unable to open input file barebox Makefile:783: recipe for target 'barebox' failed make: *** [barebox] Error 2 :D, could any one please fix this error~~ Regards, Du Huanpeng ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
can't interrupt when printing T T T T T
Hello, I boot my barebox by barebox from tftpserver. I poweroff my switcher. and barebox began to print - - - - Booting entry 'net' T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T T IP 192.168.1.88 is not reachable - - - - I try to hit ctrl-c and some other keys. but I can't stop it printing 'T'. so I added some piece of code to test it fs/tftp.c static int tftp_poll(struct file_priv *priv) { + + if(tstc()) { + printf("%s", __func__); + putchar(getchar()); + } + if (ctrlc()) { net/net.c void net_poll(void) { + if(tstc()) { + printf("%s", __func__); + putchar(getchar()); + } + net/eth.c static int __eth_rx(struct eth_device *edev) { int ret; + if(tstc()) { + putchar(getchar()); + printf("|-_-|"); + } + - - - - - - - - the result: Booting entry 'net' T net_pollknet_polljnet_pollknet_polljk|-_-|net_polljT n|-_-|net_pollkj|-_-|net_pollsnet_pollknet_pollfnet_pollanet_polljT |-_-|net_poll|-_-||-_-|net_pollnet_ pollT T T T T net_pollfnet_pollfT net_pollff|-_-|f|-_-|net_pollfnet_pollfnet_pollfnet_pollfnet_pollfnet_pollfnet_pollfT f|-_-|net_polldnet_pollfnet_pollsnet_p olldnet_pollkf|-_-|net_polljnet_pollknet_pollsnet_polljd|-_-|net_polljnet_polljnet_polljnet_polljnet_polljnet_polljnet_polljT net_polljnet_polljnet_polljnet_p olljnet_polljnet_polljnet_polljnet_polljnet_polljnet_polljnet_polljnet_polljnet_polljnet_polljnet_polljnet_polljj|-_-|net_polljT T T T T T T T net_pollfnet_po llfnet_pollfT net_pollfnet_pollfnet_pollfnet_pollfnet_pollfnet_pollfnet_pollfnet_pollfnet_pollfnet_pollfnet_pollff|-_-|T net_pollfnet_polldnet_polldd|-_-|d|-_ -|T T T T T T T T T T T T T T T T T T T IP 192.168.1.88 is not reachable I found it the routine (tftp_poll) didn't catch the key input. mostly the input is catched by net_poll(). could anyone help to move the ctrlc() dection into the right place? duhuanpeng. ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH] input: add handler for reset and power key input events
Hello, I merged this patch to my barebox. and test on my own board. 1. Abort barebox booting and enter the console. the board reboots immediately when I press the button without release. here is my .dts about this button: net { label = "board:LED1:system"; gpios = < 1 GPIO_ACTIVE_LOW>; default-state = "off"; barebox,default-trigger = "net"; }; 2. Panic. type 'go 888' make barebox panic. now I really need a 'reset' key. I press and releaes the key, and try to hold this key several seconds. no reaction. Is the 'reset' key designed for reset the board when something goes wrong? Regards, duhuanpeng On Thu, Aug 29, 2019 at 07:28:08AM +0200, Ahmad Fatoum wrote: > Kernel device trees may indicate linux,code = KEY_POWER or KEY_RESTART, > mostly for gpio-keys. Make barebox able to act on them by registering an > appropriate input notifier. > > Suggested-by: Oleksij Rempel > Signed-off-by: Ahmad Fatoum > --- > drivers/input/Kconfig | 6 ++ > drivers/input/Makefile | 1 + > drivers/input/specialkeys.c | 36 > 3 files changed, 43 insertions(+) > create mode 100644 drivers/input/specialkeys.c > > diff --git a/drivers/input/Kconfig b/drivers/input/Kconfig > index 1f89ae3892dc..be061683fb0a 100644 > --- a/drivers/input/Kconfig > +++ b/drivers/input/Kconfig > @@ -64,4 +64,10 @@ config KEYBOARD_USB > help > This driver implements support for usb keyboard. > > +config INPUT_SPECIALKEYS > + bool "Special keys handler" > + select INPUT > + help > + Say Y here to handle key events like KEY_RESTART and KEY_POWER. > + > endmenu > diff --git a/drivers/input/Makefile b/drivers/input/Makefile > index e694a98d1087..36a4204d5308 100644 > --- a/drivers/input/Makefile > +++ b/drivers/input/Makefile > @@ -5,3 +5,4 @@ obj-$(CONFIG_KEYBOARD_GPIO) += gpio_keys.o > obj-$(CONFIG_KEYBOARD_TWL6030) += twl6030_pwrbtn.o > obj-$(CONFIG_KEYBOARD_IMX_KEYPAD) += imx_keypad.o > obj-$(CONFIG_KEYBOARD_QT1070) += qt1070.o > +obj-$(CONFIG_INPUT_SPECIALKEYS) += specialkeys.o > diff --git a/drivers/input/specialkeys.c b/drivers/input/specialkeys.c > new file mode 100644 > index ..51ee43218192 > --- /dev/null > +++ b/drivers/input/specialkeys.c > @@ -0,0 +1,36 @@ > +// SPDX-License-Identifier: GPL-2.0 > +// Copyright (c) 2019 Ahmad Fatoum, Pengutronix > + > +#include > +#include > +#include > +#include > +#include > +#include > + > +static void input_specialkeys_notify(struct input_notifier *in, > + struct input_event *ev) > +{ > + switch (ev->code) { > + case KEY_RESTART: > + pr_debug("code: %d. Triggering reset.\n", ev->code); > + restart_machine(); > + break; > + > + case KEY_POWER: > + pr_debug("code: %d. Triggering poweroff.\n", ev->code); > + poweroff_machine(); > + break; > + } > + > + pr_debug("ignoring code: %d\n", ev->code); > +} > + > +static struct input_notifier notifier; > + > +static int input_specialkeys_init(void) > +{ > + notifier.notify = input_specialkeys_notify; > + return input_register_notfier(); > +} > +late_initcall(input_specialkeys_init); > -- > 2.23.0 > > > ___ > barebox mailing list > barebox@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/barebox > ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
mips : How to run barebox by bootm in ram(u-boot command)?
Hello! How to run Barebox from ram now? I have a board with 64MiB ram and 16MiB flash, flash it to the first sector by original u-boot, maybe brick the board. Debrick is difficult due to limited tools. So, I want to run this in ram. And my u-boot *don't* have the "go" command. I have to use bootm command to run Barebox. - - - - - - mkimage -A mips -O linux -T kernel -C none -a 8006 -e 8006 -n 'barebox-tp-link' -d barebox.bin uImage tftpboot 0x8100 uImage bootm 0x8100 - - - - I have try these above, but no luck. Regards, duhuanpeng ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
答复: 答复: freescale-mx28-evk run from ram
Hi, now it is running. Thanks. Now the lcd is dark. How to launch the gui? - - - diff --git a/arch/arm/boards/freescale-mx28-evk/lowlevel.c b/arch/arm/boards/freescale-mx28-evk/lowlevel.c index 4d45a03..10f7ef6 100644 --- a/arch/arm/boards/freescale-mx28-evk/lowlevel.c +++ b/arch/arm/boards/freescale-mx28-evk/lowlevel.c @@ -14,7 +14,7 @@ ENTRY_FUNCTION(start_barebox_freescale_mx28evk, r0, r1, r2) { - barebox_arm_entry(IMX_MEMORY_BASE, SZ_128M, NULL); + barebox_arm_entry(IMX_MEMORY_BASE, SZ_64M, NULL); } - - - got MAC address from IIM: 00:04:f8:5d:d7:cf FEC0 Warning: FEC0 MAC addresses don't match: Address in SROM is 00:04:f8:5d:d7:cf Address in environment is 02:00:92:b3:c4:a8 Hit any key to stop autoboot: 0 MX28 U-Boot > MX28 U-Boot > MX28 U-Boot > MX28 U-Boot > MX28 U-Boot > MX28 U-Boot > tftpboot barebox-freescale-mx28evk-2nd.img Using FEC0 device TFTP from server 192.168.12.61; our IP address is 192.168.12.62 Filename 'barebox-freescale-mx28evk-2nd.img'. Load address: 0x4160 Loading: T # done Bytes transferred = 237783 (3a0d7 hex) MX28 U-Boot > go 0x4160 ## Starting application at 0x4160 ... initcall-> globalvar_init+0x0/0x38 initcall-> platform_init+0x0/0xc initcall-> mdio_bus_init+0x0/0xc initcall-> spi_bus_init+0x0/0xc initcall-> gpio_desc_alloc+0x0/0x20 initcall-> fs_bus_init+0x0/0xc initcall-> mxs_gpio_add+0x0/0x18 initcall-> imx28_clocksource_init+0x0/0x54 initcall-> unwind_init+0x0/0x30 initcall-> imx28_ccm_init+0x0/0xc initcall-> net_init+0x0/0x88 initcall-> init_fs+0x0/0x3c initcall-> mxs_init+0x0/0xdc detected i.MX28 revision 1.2 initcall-> imx28_devices_init+0x0/0x144 initcall-> imx28_init+0x0/0x2c initcall-> stm_serial_driver_register+0x0/0xc initcall-> auart_serial_driver_register+0x0/0xc initcall-> mx28_evk_console_init+0x0/0x54 Switch to console [cs0] barebox 2018.02.0-00077-g359966d-dirty #12 Fri Mar 2 18:37:29 CST 2018 Board: Freescale i.MX28 EVK initcall-> globalvar_init+0x0/0x38 initcall-> platform_init+0x0/0xc -邮件原件- 发件人: 'Sascha Hauer' [mailto:s.ha...@pengutronix.de] 发送时间: 2018年3月2日 18:15 收件人: duhuanpeng 抄送: barebox@lists.infradead.org 主题: Re: 答复: freescale-mx28-evk run from ram On Fri, Mar 02, 2018 at 05:01:37PM +0800, duhuanpeng wrote: > > I assume you use freescale-mx28-evk_defconfig, right? > Yes. > > Which image do you start? It seems you are trying to start barebox.bin. > > barebox.bin and barebox-freescale-mx28evk-2nd.img > It should be images/barebox-freescale-mx28evk-2nd.img instead. > > The image should be linked to 0x0, that is right. The code is position > independent though and the full barebox relocates itself to the end of > the available SDRAM automatically. TEXT_BASE is not relevant here. > The start symbol is still 0x even I change TEXT_BASE in menuconfig. > my board have 64MiB ram. Modified board. > Very cheap one, just 33?. :D > EasyARM-i.MX283A You are running on a board which actually is no mx28-evk, so it's no wonder it doesn't work. Please mention that next time, because that changes the question from "What is broken with the mx28-evk" to "What is different on your board". This is a very important detail to answer questions. Anyway, you say your board only has 64MiB of RAM, so you must at least change: ENTRY_FUNCTION(start_barebox_freescale_mx28evk, r0, r1, r2) { barebox_arm_entry(IMX_MEMORY_BASE, SZ_128M, NULL); } to SZ_64M. Other differences might include the pinmux and the UART port number which is used for console output. Sascha -- 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- | ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
答复: 答复: freescale-mx28-evk run from ram
Hi, now it is running. Thanks. Now the lcd is dark. How to launch the gui? - - - diff --git a/arch/arm/boards/freescale-mx28-evk/lowlevel.c b/arch/arm/boards/freescale-mx28-evk/lowlevel.c index 4d45a03..10f7ef6 100644 --- a/arch/arm/boards/freescale-mx28-evk/lowlevel.c +++ b/arch/arm/boards/freescale-mx28-evk/lowlevel.c @@ -14,7 +14,7 @@ ENTRY_FUNCTION(start_barebox_freescale_mx28evk, r0, r1, r2) { - barebox_arm_entry(IMX_MEMORY_BASE, SZ_128M, NULL); + barebox_arm_entry(IMX_MEMORY_BASE, SZ_64M, NULL); } - - - got MAC address from IIM: 00:04:f8:5d:d7:cf FEC0 Warning: FEC0 MAC addresses don't match: Address in SROM is 00:04:f8:5d:d7:cf Address in environment is 02:00:92:b3:c4:a8 Hit any key to stop autoboot: 0 MX28 U-Boot > MX28 U-Boot > MX28 U-Boot > MX28 U-Boot > MX28 U-Boot > MX28 U-Boot > tftpboot barebox-freescale-mx28evk-2nd.img Using FEC0 device TFTP from server 192.168.12.61; our IP address is 192.168.12.62 Filename 'barebox-freescale-mx28evk-2nd.img'. Load address: 0x4160 Loading: T # done Bytes transferred = 237783 (3a0d7 hex) MX28 U-Boot > go 0x4160 ## Starting application at 0x4160 ... initcall-> globalvar_init+0x0/0x38 initcall-> platform_init+0x0/0xc initcall-> mdio_bus_init+0x0/0xc initcall-> spi_bus_init+0x0/0xc initcall-> gpio_desc_alloc+0x0/0x20 initcall-> fs_bus_init+0x0/0xc initcall-> mxs_gpio_add+0x0/0x18 initcall-> imx28_clocksource_init+0x0/0x54 initcall-> unwind_init+0x0/0x30 initcall-> imx28_ccm_init+0x0/0xc initcall-> net_init+0x0/0x88 initcall-> init_fs+0x0/0x3c initcall-> mxs_init+0x0/0xdc detected i.MX28 revision 1.2 initcall-> imx28_devices_init+0x0/0x144 initcall-> imx28_init+0x0/0x2c initcall-> stm_serial_driver_register+0x0/0xc initcall-> auart_serial_driver_register+0x0/0xc initcall-> mx28_evk_console_init+0x0/0x54 Switch to console [cs0] barebox 2018.02.0-00077-g359966d-dirty #12 Fri Mar 2 18:37:29 CST 2018 Board: Freescale i.MX28 EVK initcall-> globalvar_init+0x0/0x38 initcall-> platform_init+0x0/0xc -邮件原件- 发件人: 'Sascha Hauer' [mailto:s.ha...@pengutronix.de] 发送时间: 2018年3月2日 18:15 收件人: duhuanpeng 抄送: barebox@lists.infradead.org 主题: Re: 答复: freescale-mx28-evk run from ram On Fri, Mar 02, 2018 at 05:01:37PM +0800, duhuanpeng wrote: > > I assume you use freescale-mx28-evk_defconfig, right? > Yes. > > Which image do you start? It seems you are trying to start barebox.bin. > > barebox.bin and barebox-freescale-mx28evk-2nd.img > It should be images/barebox-freescale-mx28evk-2nd.img instead. > > The image should be linked to 0x0, that is right. The code is position > independent though and the full barebox relocates itself to the end of > the available SDRAM automatically. TEXT_BASE is not relevant here. > The start symbol is still 0x even I change TEXT_BASE in menuconfig. > my board have 64MiB ram. Modified board. > Very cheap one, just 33?. :D > EasyARM-i.MX283A You are running on a board which actually is no mx28-evk, so it's no wonder it doesn't work. Please mention that next time, because that changes the question from "What is broken with the mx28-evk" to "What is different on your board". This is a very important detail to answer questions. Anyway, you say your board only has 64MiB of RAM, so you must at least change: ENTRY_FUNCTION(start_barebox_freescale_mx28evk, r0, r1, r2) { barebox_arm_entry(IMX_MEMORY_BASE, SZ_128M, NULL); } to SZ_64M. Other differences might include the pinmux and the UART port number which is used for console output. Sascha -- 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- | ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
my mx283 board sch
Sorry, that link is broken. Sch in google driver is here: https://drive.google.com/file/d/1_3xW7nfQ6p9tnkjZEDK9vZiLlUnat25K/view?usp=s haring ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
答复: freescale-mx28-evk run from ram
Hi, this is the output for barebox-freescale-mx28evk-2nd.img Load to address 0x - - - Loading: * Abort MX28 U-Boot > tftpboot 0 barebox-freescale-mx28evk-2nd.img Using FEC0 device TFTP from server 192.168.12.61; our IP address is 192.168.12.62 Filename 'barebox-freescale-mx28evk-2nd.img'. Load address: 0x0 Loading: T # done Bytes transferred = 237766 (3a0c6 hex) MX28 U-Boot > go 0 ## Starting application at 0x ... - - - Load to address 0x4160: - - - MX28 U-Boot > tftpboot barebox-freescale-mx28evk-2nd.img Using FEC0 device TFTP from server 192.168.12.61; our IP address is 192.168.12.62 Filename 'barebox-freescale-mx28evk-2nd.img'. Load address: 0x4160 Loading: T # done Bytes transferred = 237766 (3a0c6 hex) MX28 U-Boot > go 0x4160 ## Starting application at 0x4160 ... - - - - This macro is on CONFIG_PBL_RELOCATABLE # # memory layout # CONFIG_HAVE_PBL_IMAGE=y CONFIG_HAVE_PBL_MULTI_IMAGES=y CONFIG_HAVE_IMAGE_COMPRESSION=y CONFIG_PBL_IMAGE=y CONFIG_PBL_MULTI_IMAGES=y CONFIG_PBL_RELOCATABLE=y -邮件原件- 发件人: Sascha Hauer [mailto:s.ha...@pengutronix.de] 发送时间: 2018年3月2日 15:37 收件人: duhuanpeng 抄送: barebox@lists.infradead.org 主题: Re: freescale-mx28-evk run from ram Hi Du Huanpeng, On Fri, Mar 02, 2018 at 12:30:37AM +0800, duhuanpeng wrote: > Dear all, > > Happy Yuanxiao(Lantern) Festival! Thanks, same to you. Just googled some pictures for the lantern Festival, it must look amazing to stand under that many lanterns ;) > In System.map > T __image_start > T start > T _stext > T _text > 0004 T __bare_init_start > 0004 T get_runtime_offset > 0014 t linkadr > 0018 T __ld_var_base > 0018 T __ld_var__text > 0020 t ___text > 0024 T __ld_var___rel_dyn_start > 002c t rel_dyn_start > 0030 T __ld_var___rel_dyn_end > 0038 t rel_dyn_end > 003c T __ld_var___dynsym_start > 0044 t dynsym_start > 0048 T __ld_var___dynsym_end > 0050 t dynsym_end > 0054 T __ld_var___bss_start > 005c t bss_start > 0060 T __ld_var___bss_stop > 0068 t bss_stop > > So, I load barebox.bin to address 0x: > I assume you use freescale-mx28-evk_defconfig, right? Yes. Which image do you start? It seems you are trying to start barebox.bin. > barebox.bin and barebox-freescale-mx28evk-2nd.img It should be images/barebox-freescale-mx28evk-2nd.img instead. The image should be linked to 0x0, that is right. The code is position independent though and the full barebox relocates itself to the end of the available SDRAM automatically. TEXT_BASE is not relevant here. The start symbol is still 0x even I change TEXT_BASE in menuconfig. my board have 64MiB ram. Modified board. Very cheap one, just 33�. :D EasyARM-i.MX283A http://www.zlg.cn/ipc/ipc/product/id/92.html http://www.zlg.cn/ipc/down/down/id/92.html This board has a LCD(480*800?), I want to test font support on this board. The sch is here: https://drive.google.com/open?id=1_3xW7nfQ6p9tnkjZEDK9vZiLlUnat25K There are many pcf fonts here: https://www.netsarang.com/download/main.html and maybe use code from freetype? http://www.freetype.org/ Sascha -- 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- | ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox
freescale-mx28-evk run from ram
Dear all, Happy Yuanxiao(Lantern) Festival! I have a modified mx28-evk board, I want to run barebox on it, but I don’t want to make change to the flash. In System.map T __image_start T start T _stext T _text 0004 T __bare_init_start 0004 T get_runtime_offset 0014 t linkadr 0018 T __ld_var_base 0018 T __ld_var__text 0020 t ___text 0024 T __ld_var___rel_dyn_start 002c t rel_dyn_start 0030 T __ld_var___rel_dyn_end 0038 t rel_dyn_end 003c T __ld_var___dynsym_start 0044 t dynsym_start 0048 T __ld_var___dynsym_end 0050 t dynsym_end 0054 T __ld_var___bss_start 005c t bss_start 0060 T __ld_var___bss_stop 0068 t bss_stop So, I load barebox.bin to address 0x: Hit any key to stop autoboot: 0 MX28 U-Boot > tftpboot 0 barebox.bin Using FEC0 device TFTP from server 192.168.12.61; our IP address is 192.168.12.62 Filename 'barebox.bin'. Load address: 0x0 Loading: T # done Bytes transferred = 424776 (67b48 hex) MX28 U-Boot > go 0 ## Starting application at 0x ... I believe the sram is too small to load the binary. So, I change the TEXT_BASE to 0x4160 in menuconfig, build and update barebox.bin, it print funny characters: MX28 U-Boot > MX28 U-Boot > MX28 U-Boot > tftpboot 0x4160 barebox.bin Using FEC0 device TFTP from server 192.168.12.61; our IP address is 192.168.12.62 Filename 'barebox.bin'. Load address: 0x4160 Loading: T # done Bytes transferred = 424776 (67b48 hex) MX28 U-Boot > go 0x4160 ## Starting application at 0x4160 ... � For imx283, How to run barebox from ram? Thanks, Du Huanpeng ___ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox