Board logo

標題: Odroid C2 試用半年小發現 [打印本頁]

作者: winstercafe    時間: 2016-10-23 04:13     標題: Odroid C2 試用半年小發現

利伸,小弟本身係 java programmer, 寫開 web application, 對 OS kernel  / CPU 層面既野一向少理/唔識, 不過半年前買左 odroid c2 擺屋企 host 一啲 program, 就開始學野喇

話說我既 java program 需要 sqlite 同 apache pdfbox, 嚮 i686 (32bit Ubuntu - virtualbox guest, hosted on windows 7 32bit) 同埋 64bit windows 10 上運行係無問題的,本住 java write once run anywhere 既信念, 抄過去 odroid c2 之後就發現 sqlite 爆左 exception 行唔到, stackoverflow 就有人話原來 sqlite-jdbc-3.8.11.2.jar 嚮 aarch64 上面係有問題的,要用番 sqlite-jdbc-3.7.2.jar 先得,我照做就 ok 喇

另一樣野,係我個 program 其實需要用 apache pdfbox 將 pdf file covert to jpg image, 點知嚮 aarch64 上面處理中文字就亂哂碼,convert 出黎啲字變成一舊舊,而呢個就暫時無解喇,網上既相關資料好少, 我試過 aws ec2 instance 係行 x86_64, apache pdfbox 都可以正常 convert pdf to image, 所以我相信都係 architecture 問題,不過暫時無時間睇 open source drill 落去研究
作者: chancho    時間: 2016-10-23 10:56

what os you are using on odroid-c2, archlinux has support of this board.
https://archlinuxarm.org/platforms/armv8/amlogic/odroid-c2
作者: winstercafe    時間: 2016-10-23 11:21

what os you are using on odroid-c2, archlinux has support of this board.
chancho 發表於 2016-10-23 10:56

Ubuntu, I am not familiar with other Linux distribution yet
作者: chancho    時間: 2016-10-23 12:43

do they have forum about odroid-c2 or any other small boards ?
作者: 556556bt    時間: 2016-10-24 03:40

利伸,小弟本身係 java programmer, 寫開 web application, 對 OS kernel  / CPU 層面既野一向少理/唔識,  ...
winstercafe 發表於 2016-10-23 04:13



    CHING 八卦一問, 你隻C2 係邊套買呢?
作者: winstercafe    時間: 2016-10-24 08:55

do they have forum about odroid-c2 or any other small boards ?
chancho 發表於 2016-10-23 12:43

Yes, but the forum is always slow or connection failure, perhaps you remind me I could ask in Raspberry pi forum instead.  
作者: winstercafe    時間: 2016-10-24 08:57

CHING 八卦一問, 你隻C2 係邊套買呢?
556556bt 發表於 2016-10-24 03:40

上佢個網買囉
fedex 送黎香港
作者: 556556bt    時間: 2016-10-24 11:48

上佢個網買囉
fedex 送黎香港
winstercafe 發表於 2016-10-24 08:57



    明白,我見佢運費都唔平. amazon 等又out of stock
作者: ksng    時間: 2016-10-24 12:24

我用了OrangePI PC 半年,也有一個問題是行不到我自己用C/C++develop的investment software。問題是我N年前寫的時候沒有注意big and small endian,另到在arm CPU 行不到,因為arm 和intel 的endianness是不同的。
作者: chancho    時間: 2016-10-24 14:02

除非要 byte shift, 如果不是, 都不用理 endian. 可以 seach D code 出來,
#if
#then
#else
試下
作者: ksng    時間: 2016-10-24 14:44

回覆 10# chancho

其實我是知道那裏有問的,是幾個類似以下的 structure:

typedef struct
  { short int yr_month, day ;
    float close ;
    float high ;
    float low ;
    float turnover ;
  } daily_data_type ;

亦想到了解決辦法:
1. 把 PC 上的 data files做 conversion整理那些 byte order 才放到 arm 上用。這樣做的話兩邊的files 便不可直接互換。
2. 要做到 files 可互換,可在arm 那邊改software 每處讀寫data files 前重整byte order。
3. 較佳辦法是放棄用那些flat files 儲data,改用mysql。我有些data是用mysql 的,不做改動兩邊行都沒問題。
作者: g2david    時間: 2016-10-24 22:56

normal practice, the simple way to do cross platform transfer is to use char[] or std::string.

Otherwise, you need to use BOOST library





歡迎光臨 電腦領域 HKEPC Hardware (https://h2.hkepc.com/forum/) Powered by Discuz! 7.2