IBASE Technology MRS-801-RE User Manual - 2.1 Introduction

Manual is about: 8 inch RISC-based Power-over-Ethernet panel PC

Summary of MRS-801-RE

  • Page 1

    Www.Ibase.Com.Tw ibase technology inc. Mrs-801-re user manual.

  • Page 2

    Mrs-801-re user manual 2 2 copyright © 2013 ibase technology inc. All rights reserved. Revision release date v0.1 2014/09/24 v0.2 2017/11/10

  • Page 3

    I mrs-801-re user manual copyright © 2013 ibase technology inc. All rights reserved. No part of this manual, including the products and software described in it, may be reproduced, transmitted, transcribed, stored in a retrieval system, or translated into any language in any form or by any means, ex...

  • Page 4: Table Of Contents

    Ii mrs-801-re user manual table of contents setting up your system........................................................................................Iii care during use ...................................................................................................Iv acknowledgments ...........

  • Page 5

    Copyright © 2013 ibase technology inc. All rights reserved. Iii ibase technology inc. Safety information your mrs-801-re is designed and tested to meet the latest standards of safety for information technology equipment. However, to ensure your safety, it is important that you read the following saf...

  • Page 6

    Iv mrs-801-re user manual care during use do not walk on the power cord or allow anything to rest on it. Do not spill water or any other liquids on your system. When the system is turned off, a small amount of electrical current still flows. Always unplug all power, and network cables from the power...

  • Page 7

    Copyright © 2013 ibase technology inc. All rights reserved. V ibase technology inc. Acknowledgments ami is a registered trademark of ami software international, inc. Amd and ati are registered trademarks of amd corporation. Microsoft windows is a registered trademark of microsoft corporation. Fintek...

  • Page 9: Chapter 1 Introduction

    1 mrs-801-re user manual chapter 1 introduction 1.1 general description mrs-801- re, an 8” risc-based power-over-ethernet panel pc, utilizes the freescale i.Mx6 cortex a9 processor providing high computing performance and low power consumption. It comes with 1gb ddr3 memory and one 4gb emmc and one ...

  • Page 10

    2 mrs-801-re user manual 1.2 system specification 1.2.1 hardware specifications model name mrs-801-re system mainboard ib102 cpu freescale i.Mx6 cortex a9 solo (1 cores @ 1ghz) memory 1gb ddr3 memory i/o interface 1x usb (usb host. A-type) 1x usb otg (mini usb b type) 1x rs-232/485 via rj45 connecto...

  • Page 11

    Copyright © 2013 ibase technology inc. All rights reserved. 3 ibase technology inc. 1.2.2 dimensions mrs-801-re.

  • Page 12

    4 mrs-801-re user manual 1.2.3 i/o view 1.3 packing list part no. Description quantity 1 60w power adaptor 1 pc.

  • Page 13

    Copyright © 2013 ibase technology inc. All rights reserved. 5 ibase technology inc. 1.4 installation 1.4.1 installing wall mount 1. Loosen one screw and then replace the mounting bracket..

  • Page 14

    6 mrs-801-re user manual 2. Install the mounting bracket on the wall. 3. Hang up the mrs-801-re on the wall and twist one screw as shown..

  • Page 15: 2.1 Introduction

    Copyright © 2013 ibase technology inc. All rights reserved. 7 ibase technology inc. Chapter 2 motherboard introduction 2.1 introduction the ib102 i.Mx6 sbc comes with extended consumer-grade freescale i.Mx6 solo core cortex-a9 1ghz cpu. Lvds, poe+, and light bar design to bring you the scalability a...

  • Page 16: I/o View

    8 mrs-801-re user manual i/o view board dimensions.

  • Page 17: 2.2 Setting Jumpers

    Copyright © 2013 ibase technology inc. All rights reserved. 9 ibase technology inc. 2.2 setting jumpers [important] please check the jumpers, dip, buttons and switches on ib102 before doing the panel connection and boot up. Jumpers are used on ib102 to select various settings and features according ...

  • Page 18

    10 mrs-801-re user manual jp1: touch pad wire setting 2.0mm jp1 setting function pin 1-2 short/open 4 or 8 wire/5 wire (default) pin 3-4 short/open 4 or 8 wire/5 wire (default) pin 5-6 short/open 4 or 8 wire/5 wire (default) jp2: touch usb/uart mode setting 2.0mm jp2 usb setting* function 1 3 2 4 5 ...

  • Page 19

    Copyright © 2013 ibase technology inc. All rights reserved. 11 ibase technology inc. Jp3: program interface (e-call 0519-03-2161-120) (factory use only) jp4: system reset/gpio mode setting 2.0mm jp4 setting function pin 1-2 short/closed gpio pin 2-3 short/closed system reset (default) 11 2 12 1 1 3.

  • Page 20

    12 mrs-801-re user manual jp5, sw4 (s2): rs-232/422/485 mode selection 2.0mm com1 mode sw4 (s2) jp5 rs-232 off (default) 2-3 short (default) rs-485 on 2-3 short rs-422 off 1-2 short sw4 (s1): rs-422/485 device termination selection sw4 (s1) device mode on none terminal (default) off terminal s2 s1 1...

  • Page 21

    Copyright © 2013 ibase technology inc. All rights reserved. 13 ibase technology inc. J2: bl voltage setting 2.0mm j2 setting panel voltage pin 1-2 short/closed 5v (default) pin 2-3 short/closed 12v j3: bl adj level setting 2.0mm j3 setting panel voltage pin 1-2 short/closed 5v pin 2-3 short/closed 3...

  • Page 22

    14 mrs-801-re user manual j4: lvds panel power selection 2.0mm j4 setting panel voltage pin 1-2 short/closed 5v pin 2-3 short/closed 3.3v (default) 1 3.

  • Page 23: 2.3 Connectors On Ib102

    Copyright © 2013 ibase technology inc. All rights reserved. 15 ibase technology inc. 2.3 connectors on ib102 cn1: sd card connector cn2: capacitor touch pad connector (entery 7083k-f12n-04l) pin # signal name 1 gnd 2 nc 3 nc 4 nc 5 nc 6 gnd 7 sda 8 scl 9 nc 10 int 11 3.3v 12 3.3v 1 1 2.

  • Page 24

    16 mrs-801-re user manual cn3: usb 2.0 connector cn4: 10/100/1000mb lan (poe+ supported) this rj45 lan connector supports poe+ function..

  • Page 25

    17 ibase technology inc. Copyright © 2013 ibase technology inc. All rights reserved. Cn5: com1 rj45 connector 10 1 pin # signal name 1 com1 dsr, data set ready 2 gnd 3 gnd 4 com1 txd, transmit data 5 com1 rxd, receive data 6 com1 dcd, data carrier detect 7 com1 dtr, data terminal ready 8 com1 cts, c...

  • Page 26

    18 mrs-801-re user manual cn7: +12v dc-in power connector cn8: mini usb otg connector pin # signal name 1 +5v 2 d- 3 d+ 4 id 5 gnd note: cn8 will be used for usb device when id is floating. 1 5.

  • Page 27

    Copyright © 2013 ibase technology inc. All rights reserved. 19 ibase technology inc. Cn9: lvds connector (hrs df19g-30p-1h(54) ) pin # signal name 1 nc 2 lcd_vdd 3 lcd_vdd 4 nc 5 tx0- 6 tx0+ 7 gnd 8 tx1- 9 tx1+ 10 gnd 11 tx2- 12 tx2+ 13 gnd 14 clk- 15 clk+ 16 gnd 17 tx3- 18 tx3+ 19 gnd 20 gnd 21 gnd...

  • Page 28

    20 mrs-801-re user manual j1: mic connector (wt04m-30003-02032) pin # signal name 1 mic input 2 gnd j5: com2 rs232 connector, debug port connector 2.0mm (factory use only) pin # signal name 1 com2 rxd, receive data 2 com2 txd, transmit data 3 gnd 4 nc 2 1 1 4.

  • Page 29

    Copyright © 2013 ibase technology inc. All rights reserved. 21 ibase technology inc. J7: resistive touch panel connector 2.5mm pin # signal name 1 touch xp 2 touch xm 3 touch sg 4 touch yp 5 touch ym j8: mini pci-e connector 1 5.

  • Page 30

    22 mrs-801-re user manual j10: digital in/out connector 2.0mm signal name pin # pin # signal name 3.3v 1 2 gpio2 gpio1 3 4 gpio5 gpio3 5 6 gpio8 gpio7 7 8 reset gpio9 9 10 watch dog gpio10 11 12 gpio11 gpio12 13 14 gnd j11: usb2.0 connector (jst b4b-ph-k-s) pin # signal name 1 +5v 2 d- 3 d+ 4 gnd 14...

  • Page 31

    Copyright © 2013 ibase technology inc. All rights reserved. 23 ibase technology inc. J12: speaker right-out connector (wt04m-30003-02032) pin # signal name 1 speaker_right+ 2 speaker_right- j13: speaker left-out connector (wt04m-30003-02032) pin # signal name 1 speaker_left- 2 speaker_left+ sw3: sys...

  • Page 32: Chapter 3 Software Setup

    24 mrs-801-re user manual chapter 3 software setup basically, the ib102 is preloaded o.S (android / linux) into emmc by default. Connect the 8” lvds panel (optional) with ib102, and 12v/ poe+ power directly. 3.1 make a recovery sd card (for advanced user only) for advanced user who has ibase standar...

  • Page 33

    Copyright © 2013 ibase technology inc. All rights reserved. 25 ibase technology inc. For advanced users who want to return to the factory reset status, the instructions below will guide you through installing a recovery program on your sd card to allow you to easily install the default os’s and to r...

  • Page 34

    26 mrs-801-re user manual --- boot up with ib102--- please double check the boot device selection before powering on. Ib102, by default, is set to boot up from emmc. 1. Insert the sd card/microsd into the motherboard. Make sure the 8” panel (or your own panel) is connected and connect the power supp...

  • Page 35

    Copyright © 2013 ibase technology inc. All rights reserved. 27 ibase technology inc. 3.2 parameter setting on u-boot ib102 supports 8” lvds panel (optional) by default. If you have any other lvds panel to be customized, please contact ibase sales or fae staff. 3.2.1 preparation (debug console) i. Th...

  • Page 36

    28 mrs-801-re user manual 3.2.2 display setting command for android (for advanced software engineers only) with the debug port, follow the reference command examples to help you to be familiar with display modification. Select boot device: mx6sdl sabreds u-boot > setenv bo otcmd “booti mmcx” where m...

  • Page 37

    Copyright © 2013 ibase technology inc. All rights reserved. 29 ibase technology inc. 3.2.3 display setting for linux command to set 8 ” panel (default): setenv bootargs_base 'setenv bootargs mem=1g console=ttymxc1,115200' setenv bootcmd_mmc 'run bootargs_base bootargs_mmc; mmc dev 2; mmc read ${load...

  • Page 38: Only )

    30 mrs-801-re user manual chapter 4 bsp user guide ( for advanced software engineer only ) this chapter is an example only, and it is mainly for advanced sw engineers to build the image for ibase arm pcb. Any other modification, new device or driver should be handled carefully. 4.1 building bsp sour...

  • Page 39

    Copyright © 2013 ibase technology inc. All rights reserved. 31 ibase technology inc. Mkdir -p /opt/freescale/usr/local/ cd /opt/freescale/usr/local/ tar xvf ~/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12.Tgz.

  • Page 40

    32 mrs-801-re user manual.

  • Page 41: 4.1.3 Building U-Boot

    Copyright © 2013 ibase technology inc. All rights reserved. 33 ibase technology inc. 4.1.3 building u-boot # assume your linux bsp u-boot source is at~/linux_bsp/u-boot_2009_08/dl/u-boot cd ~/linux_bsp/u-boot_2009_08/dl/u-boot make arch=arm cross_compile=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13...

  • Page 42

    34 mrs-801-re user manual make arch=arm cross_compile=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-lin aro-toolchain/bin/arm-none-linux-gnueabi- mx6solo_sabresd_config.

  • Page 43

    Copyright © 2013 ibase technology inc. All rights reserved. 35 ibase technology inc..

  • Page 44

    36 mrs-801-re user manual make arch=arm cross_compile=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-lin aro-toolchain/bin/arm-none-linux-gnueabi- note: **** if the building process is successful, u-boot.Bin file will be generated. ****.

  • Page 45

    Copyright © 2013 ibase technology inc. All rights reserved. 37 ibase technology inc..

  • Page 46: 4.1.4 Building Kernel

    38 mrs-801-re user manual 4.1.4 building kernel # assume your linux kernel source is at ~/linux_bsp/kernel-3.0.35 cd ~/linux_bsp/kernel-3.0.35 make arch=arm clean make arch=arm cross_compile=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib- 2011.12/fsl-linaro-toolchain/bin/arm-none-linu...

  • Page 47

    Copyright © 2013 ibase technology inc. All rights reserved. 39 ibase technology inc. **** if the building process is successful, uimage file will be generated under arch/arm/boot directory. ****.

  • Page 48

    40 mrs-801-re user manual.

  • Page 49

    Copyright © 2013 ibase technology inc. All rights reserved. 41 ibase technology inc. 4.1.5 copying u-boot, kernel to sd card insert an empty sd card with at least 8gb size and put it in a card reader connecting to your host pc. Assume your sd card is /dev/sdb on your x86 host pc # copying the u-boot...

  • Page 50

    42 mrs-801-re user manual to create a partition, at offset 16384 (in sectors of 512 bytes) enter the following command: sudo fdisk /dev/sdb note on most linux host operating systems, sd card will be mounted automatically upon insertion. Therefore, before running fdisk, please make sure that sd card ...

  • Page 51

    Copyright © 2013 ibase technology inc. All rights reserved. 43 ibase technology inc. Sudo umount /dev/sdb1.

  • Page 52

    44 mrs-801-re user manual sudo mkfs.Ext4 /dev/sdb1.

  • Page 53

    Copyright © 2013 ibase technology inc. All rights reserved. 45 ibase technology inc. Copy the target file system to sd card partition by extracting rootfs package to mounted directory: (assume compressed root file system is f600_linux_fs.Tgz) mkdir /tmp/sd sudo mount /dev/sdb1 /tmp/sd cd /tmp/sd.

  • Page 54

    46 mrs-801-re user manual tar xvf ~/linux_bsp/f600_linux_fs.Tgz.

  • Page 55

    Copyright © 2013 ibase technology inc. All rights reserved. 47 ibase technology inc. Copying the file system takes several minutes. The file system content is now on the media..

  • Page 56

    48 mrs-801-re user manual 4.1.7 booting with your sd card (for advance software users only) put sd card in your board and insert special com port dongle to boot from sd. Connect a debug cable to debug port with serial port 115200/n/8/1 setting on your pc’s serial port program such hyperterminal/tera...

  • Page 57: Appendix A

    Copyright © 2013 ibase technology inc. All rights reserved. 49 ibase technology inc. Appendix a – i2c, gpio, watchdog reference code coding how to use i2c in linux reading / writing i2c i2cget.C /* i2cget.C - a user-space program to read an i2c register. Copyright (c) 2005-2012 jean delvare based on...

  • Page 58

    50 mrs-801-re user manual #include #include #include "i2cbusses.H" #include "util.H" #include "../version.H" static void help(void) __attribute__ ((noreturn)); static void help(void) { fprintf(stderr, "usage: i2cget [-f] [-y] i2cbus chip-address [data-address [mode]]" " i2cbus is an integer or an ...

  • Page 59

    Copyright © 2013 ibase technology inc. All rights reserved. 51 ibase technology inc. } if (daddress >= 0 && !(funcs & i2c_func_smbus_write_byte)) { fprintf(stderr, missing_func_fmt, "smbus send byte"); return -1; } break; case i2c_smbus_byte_data: if (!(funcs & i2c_func_smbus_read_byte_data)) { fpri...

  • Page 60

    52 mrs-801-re user manual "bus, cause data loss and worse!"); /* don't let the user break his/her eeproms */ if (address >= 0x50 && address fprintf(stderr, "stop! Eeproms are i2c devices, not " "smbus devices. Using pecon i2c devices may " "result in unexpected results, such as" "trashing the ...

  • Page 61

    Copyright © 2013 ibase technology inc. All rights reserved. 53 ibase technology inc. Return 0; } return 1; } int main(int argc, char *argv[]) { char *end; int res, i2cbus, address, size, file; int daddress; char filename[20]; int pec = 0; int flags = 0; int force = 0, yes = 0, version = 0; /* handle...

  • Page 62

    daddress 0xff) { fprintf(stderr, "error: dat...

  • Page 63

    Copyright © 2013 ibase technology inc. All rights reserved. 55 ibase technology inc. If (!Yes && !Confirm(filename, address, size, daddress, pec)) exit(0); if (pec && ioctl(file, i2c_pec, 1) fprintf(stderr, "error: could not set pec: %s", strerror(errno)); close(file); exit(1); } switch (size) { c...

  • Page 64

    56 mrs-801-re user manual i2cset.C /* i2cset.C - a user-space program to write an i2c register. Copyright (c) 2001-2003 frodo looijaard , and mark d. Studebaker copyright (c) 2004-2012 jean delvare this program is free software; you can redistribute it and/or modify it under the terms of the gnu gen...

  • Page 65

    Copyright © 2013 ibase technology inc. All rights reserved. 57 ibase technology inc. Fprintf(stderr, "usage: i2cset [-f] [-y] [-m mask] [-r] i2cbus chip-address data-address [value] ... [mode]" " i2cbus is an integer or an i2c bus name" " address is an integer (0x03 - 0x77)" " mode is one of:\...

  • Page 66

    58 mrs-801-re user manual break; case i2c_smbus_word_data: if (!(funcs & i2c_func_smbus_write_word_data)) { fprintf(stderr, missing_func_fmt, "smbus write word"); return -1; } break; case i2c_smbus_block_data: if (!(funcs & i2c_func_smbus_write_block_data)) { fprintf(stderr, missing_func_fmt, "smbus...

  • Page 67

    Copyright © 2013 ibase technology inc. All rights reserved. 59 ibase technology inc. Fprintf(stderr, "warning! This program can confuse your i2c " "bus, cause data loss and worse!"); if (address >= 0x50 && address fprintf(stderr, "dangerous! Writing to a serial " "eeprom on a memory dimmmay rend...

  • Page 68

    60 mrs-801-re user manual return 1; } int main(int argc, char *argv[]) { char *end; const char *maskp = null; int res, i2cbus, address, size, file; int value, daddress, vmask = 0; char filename[20]; int pec = 0; int flags = 0; int force = 0, yes = 0, version = 0, readback = 0; unsigned char block[i2...

  • Page 69

    Copyright © 2013 ibase technology inc. All rights reserved. 61 ibase technology inc. Fprintf(stderr, "i2cset version %s", version); exit(0); } if (argc help(); i2cbus = lookup_i2c_bus(argv[flags+1]); if (i2cbus help(); address = parse_i2c_address(argv[flags+2]); if (address help(); daddress = strt...

  • Page 70

    62 mrs-801-re user manual fprintf(stderr, "error: invalid mode '%s'!", argv[argc-1]); help(); } switch (argv[argc-1][0]) { case 'b': size = i2c_smbus_byte_data; break; case 'w': size = i2c_smbus_word_data; break; case 's': size = i2c_smbus_block_data; break; case 'i': size = i2c_smbus_i2c_block_da...

  • Page 71

    (size == i2c_smbus_word_data && value > 0xfff...

  • Page 72

    ...

  • Page 73

    Copyright © 2013 ibase technology inc. All rights reserved. 65 ibase technology inc. If (!Yes) { fprintf(stderr, "old value 0x%0*x, write mask " "0x%0*x: will write 0x%0*x to register " "0x%02x", size == i2c_smbus_word_data ? 4 : 2, oldvalue, size == i2c_smbus_word_data ? 4 : 2, vmask, size == i2c...

  • Page 74

    66 mrs-801-re user manual default: /* i2c_smbus_byte_data */ res = i2c_smbus_write_byte_data(file, daddress, value); break; } if (res fprintf(stderr, "error: write failed"); close(file); exit(1); } if (pec) { if (ioctl(file, i2c_pec, 0) fprintf(stderr, "error: could not clear pec: %s", strerror(...

  • Page 75

    Copyright © 2013 ibase technology inc. All rights reserved. 67 ibase technology inc. Printf("warning - readback failed"); } else if (res != value) { printf("warning - data mismatch - wrote " "0x%0*x, read back 0x%0*x", size == i2c_smbus_word_data ? 4 : 2, value, size == i2c_smbus_word_data ? 4 :...

  • Page 76

    68 mrs-801-re user manual #include "i2cbusses.H" #include enum adt { adt_dummy, adt_isa, adt_i2c, adt_smbus, adt_unknown }; struct adap_type { const char *funcs; const char* algo; }; static struct adap_type adap_types[5] = { { .Funcs = "dummy", .Algo = "dummy bus", }, { .Funcs = "isa", .Algo = "isa ...

  • Page 78

    70 mrs-801-re user manual { struct i2c_adap *new_adapters; new_adapters = realloc(adapters, (n + bunch) * sizeof(struct i2c_adap)); if (!New_adapters) { free_adapters(adapters); return null; } memset(new_adapters + n, 0, bunch * sizeof(struct i2c_adap)); return new_adapters; } struct i2c_adap *gathe...

  • Page 79

    Copyright © 2013 ibase technology inc. All rights reserved. 71 ibase technology inc. Name = strrchr(s, '\t'); *(name++) = '\0'; len_name = rtrim(name); type = strrchr(s, '\t'); *(type++) = '\0'; len_type = rtrim(type); sscanf(s, "i2c-%d", &i2cbus); if ((count + 1) % bunch == 0) { /* we need more spa...

  • Page 80

    72 mrs-801-re user manual } while (fgets(n, name_max, f)) { sscanf(n, "%*[^ ] %[^ ] %[^ ] %*s", sysfs, fstype); if (strcasecmp(fstype, "sysfs") == 0) { foundsysfs++; break; } } fclose(f); if (! Foundsysfs) { goto done; } /* bus numbers in i2c-adapter don't necessarily match those in i2c-dev and wh...

  • Page 81

    Copyright © 2013 ibase technology inc. All rights reserved. 73 ibase technology inc. If(f == null) { sprintf(n, "%s/%s/device", sysfs, de->d_name); if(!(ddir = opendir(n))) continue; while ((dde = readdir(ddir)) != null) { if (!Strcmp(dde->d_name, ".")) continue; if (!Strcmp(dde->d_name, "..")) cont...

  • Page 82

    74 mrs-801-re user manual type = i2c_get_funcs(i2cbus); } if ((count + 1) % bunch == 0) { /* we need more space */ adapters = more_adapters(adapters, count + 1); if (!Adapters) return null; } adapters[count].Nr = i2cbus; adapters[count].Name = strdup(s); if (adapters[count].Name == null) { free_adap...

  • Page 83

    Copyright © 2013 ibase technology inc. All rights reserved. 75 ibase technology inc. /* walk the list of i2c busses, looking for the one with the right name */ for (i = 0; adapters[i].Name; i++) { if (strcmp(adapters[i].Name, bus_name) == 0) { if (i2cbus >= 0) { fprintf(stderr, "error: i2c bus name ...

  • Page 84

    76 mrs-801-re user manual fprintf(stderr, "error: i2c bus out of range!"); return -2; } return i2cbus; } /* * parse a chip-address command line argument and return the corresponding * chip address, or a negative value if the address is invalid. */ int parse_i2c_address(const char *address_arg) { l...

  • Page 85

    Copyright © 2013 ibase technology inc. All rights reserved. 77 ibase technology inc. If (file sprintf(filename, "/dev/i2c-%d", i2cbus); file = open(filename, o_rdwr); } if (file if (errno == enoent) { fprintf(stderr, "error: could not open file " "`/dev/i2c-%d' or `/dev/i2c/%d': %s", i2cbus, i2cbu...

  • Page 86

    78 mrs-801-re user manual #ifndef _i2cbusses_h #define _i2cbusses_h #include struct i2c_adap { int nr; char *name; const char *funcs; const char *algo; }; struct i2c_adap *gather_i2c_busses(void); void free_adapters(struct i2c_adap *adapters); int lookup_i2c_bus(const char *i2cbus_arg); int parse_i2...

  • Page 87

    Copyright © 2013 ibase technology inc. All rights reserved. 79 ibase technology inc. If (!Fgets(s, 2, stdin)) return 0; /* nack by default */ switch (s[0]) { case 'y': case 'y': ret = 1; break; case 'n': case 'n': ret = 0; break; default: ret = def; } /* flush extra characters */ while (s[0] != ''...

  • Page 88

    80 mrs-801-re user manual version.H #define version "3.1.1".

  • Page 89: How To Use Gpio In Linux

    Copyright © 2013 ibase technology inc. All rights reserved. 81 ibase technology inc. How to use gpio in linux 1.2.1 gpio mapping table gpio logical number physical number 1 32 2 33 3 34 5 36 7 38 8 39 9 81 10 82 11 40 12 41 1.2.2 gpio sample code # gpio example 1: output (take gpio 32 as example) ec...

  • Page 90

    82 mrs-801-re user manual 1.2.3 how to use watchdog in linux #include #include #include #include int main(void) { int fd = open("/dev/watchdog", o_wronly); int ret = 0; if (fd == -1) { perror("watchdog"); exit(exit_failure); } while (1) { ret = write(fd, "\0", 1); if (ret != 1) { ret = -1; break; } ...

  • Page 91

    Copyright © 2013 ibase technology inc. All rights reserved. 83 ibase technology inc. Appendix b: how to flash the image to emmc (for advanced users only) this is just an example ( form smarc eval kit) i f users have the ability to customize the system in the sd card. Users can flash the current sd i...

  • Page 92: Appendix C

    84 mrs-801-re user manual appendix c – adb configuration (for android only) update the adb configuration to scan for the new vendor id. Below are the steps to update the adb configuration for windows pc. These steps (and the steps for linux pc as well) can also be found in the r10,3.X user guide. 1....

  • Page 93

    Copyright © 2013 ibase technology inc. All rights reserved. 85 ibase technology inc. 8. Finally, test your adb connection c:\program files\android\android-sdk\platform-tools> adb devices list of devices attached 0123456789abcdef device.

  • Page 94: Appendix D

    86 mrs-801-re user manual appendix d – useful links for more information about android, please visit: http://developer.Android.Com/index.Html for more information freescale i.Mx6 cpu , please visit: http://www.Freescale.Com/webapp/sps/site/homepage.Jsp?Code=imx_h ome.