~~NOCACHE~~ \\ ===== How-to ===== ====== Kernel command line parameters ====== In the following section special commandline parameters for the TQMa35 kernel are given: ==== Display selection ==== Selects desplay and configures backlight curve. video=mx3fb:< EDT480272 | EVERVGG482270 | ETV570 | CLAA070LC0ACW | FG0700K5DSSWBG01 | AUOG104SN02 > ==== USB OTG mode selection ==== Configures the USB OTG controller otg_mode= ==== LVDS ==== MBa35 only Configures the LVDS Transmitter at power up default: 0 (Off) lvds=<0 | 1> ==== eMMC ==== Enable / Disable the eSDHC3 controller at power up * default: emmc * emmc: maps the pins, binds the driver and try detect card * none: do nothing. Pins can be used freely only for TQMa35 without eMMC emmc_mode= ====== Display ====== Framebuffer console and Bootlogo support are not compiled in. To test fuctionality you can use fbtest utility: root@tqma35 $ fbtest ====== GPIO ====== All GPIO pins are exported using sysfs and are accessible using their value node. To set an output write "0" or "1" to the value node of gpio n: root@tqma35 $ echo "1" > /sys/class/gpio/gpio/value root@tqma35 $ echo "0" > /sys/class/gpio/gpio/value To query current state of gpio n: root@tqma35 $ cat /sys/class/gpio/gpio/value ====== Backlight ====== ===== Switching the backlight using sysfs ===== To switch the backlight sysfs file nodes are provided. Use root@tqma35 $ echo "0" > /sys/devices/platform/mx3_sdc_fb/graphics/fb0/mx3_sdc_bl0/bl_power to switch on and root@tqma35 $ echo "1" > /sys/devices/platform/mx3_sdc_fb/graphics/fb0/mx3_sdc_bl0/bl_power to switch off. ===== Dimming of the backlight using sysfs ===== To dim the backlight sysfs files are provided. To query max / current brightness use: $ cat /sys/devices/platform/mx3_sdc_fb/graphics/fb0/mx3_sdc_bl0/max_brightness $ cat /sys/devices/platform/mx3_sdc_fb/graphics/fb0/mx3_sdc_bl0/brightness To dim the backlight use (value in the range of 1 ... max_brightness): $ echo "" > /sys/devices/platform/mx3_sdc_fb/graphics/fb0/mx3_sdc_bl0/brightness ====== System updates using U-boot ====== ==== Linux Kernel update ==== U-Boot has to be configured to work with your TFTP-Server Make sure the following environment variables existing and are configured correctly: * kernel: Filename for kernel image on TFTP server * kernel_addr: Offset in NOR-flash where to store the kernel, depends on partitioning scheme Configure update helper: MX35 U-Boot > setenv prg_kernel tftpboot ${loadaddr} ${kernel}; erase ${kernel_addr} A02FFFFF; cp.b ${loadaddr} ${kernel_addr} ${filesize}; setenv filesize MX35 U-Boot > saveenv Now the kernel image can be updated using the following shortcut: MX35 U-Boot > run prg_kernel ==== Rootfs update ==== U-Boot has to be configured to work with your TFTP-Server This works only for JFFS2 rootfs on NOR flash Make sure the following environment variables existing and are configured correctly: * rootfs: Filename for rootfs image on TFTP server * ramdisk_addr: Offset in NOR-flash where to store the rootfs, depends on partitioning scheme MX35 U-Boot > setenv ramdisk_end a1ffffff (für 32MB Flash) MX35 U-Boot > setenv prg_rootfs tftpboot ${loadaddr} ${rootfs}; erase ${ramdisk_addr} +${filesize}; ${ramdisk_addr} ${ramdisk_end}; cp.b ${loadaddr} ${ramdisk_addr} ${filesize}; setenv filesize MX35 U-Boot > saveenv Now the rootfs can be updated using the following shortcut: MX35 U-Boot > run prg_rootfs