Commit 4f723ef4 authored by mntmn's avatar mntmn

a variant of kernel commandline that uses /sbin/reform-init on the rescue system

parent 46feaf0b
......@@ -332,7 +332,7 @@ static void set_env_vars(void)
env_set("fdt_addr", "0x50000000");
#ifdef MNTREFORM_BOOT_EMMC
// boot rescue system from eMMC
env_set("bootargs", "noinitrd root=/dev/mmcblk0p1 rootwait rw console=ttymxc0,115200 console=tty1 cma=512M pci=nomsi");
env_set("bootargs", "noinitrd root=/dev/mmcblk0p1 rootwait rw console=ttymxc0,115200 console=tty1 cma=512M pci=nomsi init=/sbin/reform-init");
env_set("bootcmd", "ext4load mmc 0 ${loadaddr} /Image; ext4load mmc 0 ${fdt_addr} /imx8mq-mnt-reform2.dtb; booti ${loadaddr} - ${fdt_addr}");
#else
// boot normal system from SD card and start /sbin/reform-init
......@@ -356,13 +356,13 @@ int board_late_init(void)
{
set_env_vars();
// Reform: Reset USB hub
imx_iomux_v3_setup_pad(IMX8MQ_PAD_GPIO1_IO14__GPIO1_IO14 | MUX_PAD_CTRL(WEAK_PULLUP));
gpio_request(IMX_GPIO_NR(1, 14), "usb1_rst");
gpio_direction_output(IMX_GPIO_NR(1, 14), 1);
gpio_set_value(IMX_GPIO_NR(1, 14), 0);
mdelay(10);
gpio_set_value(IMX_GPIO_NR(1, 14), 1);
// Reform: Reset USB hub
imx_iomux_v3_setup_pad(IMX8MQ_PAD_GPIO1_IO14__GPIO1_IO14 | MUX_PAD_CTRL(WEAK_PULLUP));
gpio_request(IMX_GPIO_NR(1, 14), "usb1_rst");
gpio_direction_output(IMX_GPIO_NR(1, 14), 1);
gpio_set_value(IMX_GPIO_NR(1, 14), 0);
mdelay(10);
gpio_set_value(IMX_GPIO_NR(1, 14), 1);
#if defined(CONFIG_USB_FUNCTION_FASTBOOT) || defined(CONFIG_CMD_DFU)
addserial_env("serial#");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment